Page 2 of 2
					
				Re: Ubuntu lubuntu g27
				Posted: Mon May 16, 2016 5:58 am
				by Matlo
				
			 
			
					
				Re: Ubuntu lubuntu g27
				Posted: Tue May 17, 2016 4:56 pm
				by Mrgonuts
				Hi Matlo thanks for your time
I tested on my eepc running lubuntu still the same run Gimx press shift escape then run again works fine
On my laptop running Ubuntu it says 
error cant read inputs
Log file
option -l with value `log.txt'
option -c with value `LogitechG27_G29.xml'
option -p with value `/dev/ttyUSB0'
status flag is set
subpos flag is set
force_updates flag is set
USB adapter detected, controller type is: G29 PS4.
using default refresh period: 5.00ms
native mode is already enabled for HID device 06:01:00:00 (PID=c29b)
src/input/linux/mkb.c:319 mkb_init: open failed with error: Operation not permitted
Thanks again for your great work if there's anything you want me to test just ask
Cheers
			 
			
					
				Re: Ubuntu lubuntu g27
				Posted: Wed May 18, 2016 10:59 am
				by Matlo
				Hi,
I need a full log file for the first and second tries. Select "Log file" in the "Messages" drop-down menu of gimx-launcher.
			 
			
					
				Re: Ubuntu lubuntu g27
				Posted: Wed May 18, 2016 8:40 pm
				by Mrgonuts
				Ok first running of Gimx
http://pastebin.com/5z5bDNpu
Pressed ps button no response
Pressed shift escape 
Second run of Gimx
http://pastebin.com/uemQKgDR
Hope this helps
Any thing else please ask
 
			 
			
					
				Re: Ubuntu lubuntu g27
				Posted: Thu Jun 02, 2016 9:39 am
				by Mrgonuts
				Hi Thanks Again For your great Work Matlo
i made a script that runs at startup 
its a bit rough but gets the job done
it runs Gimx quits xterm then runs again 
so now i just press the power button on my eeepc wait a few seconds start racing in drive club dirt rally etc 
when finished i shut dow ps4 from the wheel press power button eeepc that shuts down
Code: Select all
#!/bin/bash
sleep 4
# /home/mrgonuts/Desktop/test.sh
sleep 1
/usr/bin/gimx-launcher &
sleep 2
xdotool search --onlyvisible --name Information windowactivate 
WINIDError=`xdotool getactivewindow`
xdotool key Return
echo $WINIDError
sleep 1
xdotool search --onlyvisible --name Gimx-launcher windowactivate 
WINID=`xdotool getactivewindow`
echo $WINID
TOP_LEFT_X=`xwininfo -all -int -id $WINID|grep Absolute |grep X |cut -d ':' -f2 |sed 's/ //g'`
TOP_LEFT_Y=`xwininfo -all -int -id $WINID|grep Absolute |grep Y |cut -d ':' -f2 |sed 's/ //g'`
xdotool mousemove $TOP_LEFT_X $TOP_LEFT_Y
WIDTH=`xwininfo -all -int -id $WINID|grep Width|cut -d ':' -f2 |cut -d ' ' -f2`
HEIGHT=`xwininfo -all -int -id $WINID|grep Height|cut -d ':' -f2 |cut -d ' ' -f2`
CENTER_X=`echo $WIDTH/2|bc`
CENTER_Y=`echo $HEIGHT/2|bc`
#move the mouse to the start button
xdotool mousemove_relative `echo $CENTER_X+50|bc` `echo $HEIGHT-100|bc` click 1
sleep 1
#xdotool mousemove_relative `echo $CENTER_X+60|bc` `echo $HEIGHT-50|bc` click 1
xdotool mousemove_relative 0 50 click 1
sleep 3
var= xdotool search --class xterm getwindowpid
xdotool getactivewindow windowkill
sleep 2
xdotool key Return
xdotool search --onlyvisible --name Gimx-launcher windowactivate 
WINID=`xdotool getactivewindow`
xdotool mousemove $TOP_LEFT_X $TOP_LEFT_Y
xdotool mousemove_relative `echo $CENTER_X+60|bc` `echo $HEIGHT-50|bc` click 1
 
			 
			
					
				Re: Ubuntu lubuntu g27
				Posted: Thu Jun 02, 2016 12:19 pm
				by Matlo
				Hi,
This looks complicated.
Try this:
Code: Select all
timeout 5 gimx -p /dev/ttyUSB0 -c config.xml --force-updates --subpos
gimx -p /dev/ttyUSB0 -c config.xml --force-updates --subpos
Don't forget to adjust config.xml.
The first line starts GIMX and stops it after 5 seconds.
Second line starts GIMX normally.
 
			 
			
					
				Re: Ubuntu lubuntu g27
				Posted: Thu Jun 02, 2016 1:01 pm
				by Mrgonuts
				Hi thanks I'll give it a try later thanks