Ubuntu lubuntu g27

Need help? Ask here and someone will help
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Ubuntu lubuntu g27

Post by Matlo »

GIMX creator
Mrgonuts
Posts: 56
Joined: Sat Nov 21, 2015 4:50 pm

Re: Ubuntu lubuntu g27

Post 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
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Ubuntu lubuntu g27

Post 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.
GIMX creator
Mrgonuts
Posts: 56
Joined: Sat Nov 21, 2015 4:50 pm

Re: Ubuntu lubuntu g27

Post 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
Mrgonuts
Posts: 56
Joined: Sat Nov 21, 2015 4:50 pm

Re: Ubuntu lubuntu g27

Post 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
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Ubuntu lubuntu g27

Post 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.
GIMX creator
Mrgonuts
Posts: 56
Joined: Sat Nov 21, 2015 4:50 pm

Re: Ubuntu lubuntu g27

Post by Mrgonuts »

Hi thanks I'll give it a try later thanks
Post Reply