How to get only autorotation functionality on raspberry pi os


  • I followed instruction on:

    https://github.com/sunfounder/raspad3/blob/main/docs/source/install_rotating_screen_service.rst

    and I still can not ratate screen of raspad:

    After executing command:

    git clone https://github.com/raspad-tablet/raspad-auto-rotator
    cd raspad-auto-rotator
    sudo python3 install.py

    It installed that but I get no reation form screen after rotation.
    I tried:
    raspad-auto-rotator reset

    but no raspad-auto-rotator command exist and even then I go and try from directiory by:
    ./raspad-auto-rotator reset



  • its very hard to help with this as you havent provide any output of the install command so i cant see if there was any errors, so do 2 commands for me to be better able to help you.

    run

    sudo i2cdetect -y 1

    paste the output here. then run the install script again and paste the output of that too then i may have a better chance of helping you.

    also to make mine and your life easier, open the back of the raspad3 and post a picture of the inside so i can heck you have it all connected correctly. 


  • BEFORE:

    pi@raspberrypi:~ $ sudo i2cdetect -y 1
    Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory

    AFTER:

    pi@raspberrypi:~ $ git clone https://github.com/raspad-tablet/raspad-auto-rotator
    cd raspad-auto-rotator
    sudo python3 install.py
    fatal: docelowa ścieżka „raspad-auto-rotator” już istnieje i nie jest pustym katalogiem.
    Installing RasPad auto rotator
    Install dependency
    [ OK ] update apt...
    [ OK ] install i2c-tools...
    [ OK ] install pip...
    [ OK ] install xinput...
    [ OK ] install setuptools...
    Setup raspad-auto-rotator service
    [ OK ] copy raspad-auto-rotator file...
    [ OK ] add excutable mode for raspad-auto-rotator...
    [ OK ] copy rotate-helper file...
    [ OK ] add excutable mode for rotate-helper...
    [ OK ] copy autostart...
    [ OK ] Get SH3001 library...
    Install sh3001 python package
    [ OK ] run setup file...
    [ OK ] Start auto rotator...


    ========================================
    Installation finished!
    pi@raspberrypi:~/raspad-auto-rotator $ sudo i2cdetect -y 1
    Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory

     

     

    I attach photo in next post.



  • Go to Menu > Preferences > Raspberry Pi Configuration and then go to interfaces tab and enable I2C


  • Thank you very much. It is working.

     


  • no problem, happy to see you got it working.

     



Please login to reply this topic!