Home of the Squeezebox™ & Transporter® network music players.
Page 16 of 16 FirstFirst ... 6141516
Results 151 to 153 of 153
  1. #151
    Junior Member
    Join Date
    Jan 2019
    Location
    Russia
    Posts
    7
    Quote Originally Posted by Paul Webster View Post
    Try changing
    # export SDL_VIDEO_FBCON_ROTATION=UD
    to
    export SDL_VIDEO_FBCON_ROTATION=CW
    or
    export SDL_VIDEO_FBCON_ROTATION=CCW

    Valid values are:
    o not set - Not rotating, no shadow.
    o "NONE" - Not rotating, but still using shadow.
    o "CW" - Rotating screen clockwise.
    o "UD" - Rotating screen upside down.
    o "CCW" - Rotating screen counter clockwise.
    I'm trying it, but works only 0 and 180 orientation, 90 or 270 doesn't work, Jivelite just doesn't startup

  2. #152
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,020
    Quote Originally Posted by kennyliveforever View Post
    I'm trying it, but works only 0 and 180 orientation, 90 or 270 doesn't work, Jivelite just doesn't startup
    The issue is likely the fact that SDL doesn't have accelerated video support for all screen resolutions around the rotations.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  3. #153
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,550
    Quote Originally Posted by kennyliveforever View Post
    After 2 days i'm finaly find a solution for correct working touch, just need edit /mnt/mmcblk0p2/tce/jivelite.sh as below...
    Code:
    #!/bin/sh
    if [ ! -z ${SDL_TOUCHSCREEN} ]; then
    export JIVE_NOCURSOR=1
    fi
    
    # export SDL_VIDEO_FBCON_ROTATION=UD
    export SDL_TOUCHSCREEN=1
    
        export TSLIB_TSDEVICE=/dev/input/event0
        export SDL_MOUSEDRV=TSLIB
        export SDL_MOUSEDEV=$TSLIB_TSDEVICE
    export HOME=/home/tc
    export JIVE_FRAMERATE=22
    
    /usr/sbin/fbset -depth 32
    
    while true; do
    sleep 3
    SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite & 
    done
    Hi guys,

    The "&" at the end of the jivelite command is causing me problems. It creates lots of occurrences of jivelite to be created. Look via $ ps.

    I have been working on getting the script as generic as possible. The commented commands have been eliminated as NOT being a mandatory requirement. The EVENTNO is required because if you plug in a USB keyboard the input numbering scheme changes the touchscreen event number. I can't get udev to assign an alias, anyone done that?

    Code:
    #!/bin/sh
    
    #export SDL_VIDEO_FBCON_ROTATION=UD
    
    #export HOME=/home/tc
    #export JIVE_FRAMERATE=22
    #/usr/sbin/fbset -depth 32
    #export SDL_TOUCHSCREEN=1
    #TSLIB_CALIBFILE=/usr/local/etc/pointercal
    #export SDL_MOUSEDEV=$TSLIB_TSDEVICE
    #sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1
    
    EVENTNO=$(cat /proc/bus/input/devices | awk '/ADS7846 Touchscreen/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 0;}}}}')
    
    export JIVE_NOCURSOR=1
    export SDL_VIDEODRIVER=fbcon
    export SDL_FBDEV=/dev/fb1
    export TSLIB_TSDEVICE=/dev/input/$EVENTNO
    export SDL_MOUSEDRV=TSLIB
    
    while true; do
    	/opt/jivelite/bin/jivelite
    	sleep 3
    done
    regards
    Greg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •