psubuntu logo
It is currently Tue Sep 07, 2010 1:42 pm
Register


Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Fri Aug 22, 2008 2:24 am 
 Profile

Joined: Sun Aug 10, 2008 11:48 pm
Posts: 43
Location: Canada
^ I used the second link too. IIRC you MUST recompile at least some things if you used that. I followed the instructions in the tutorial using kernel 2.6.25.4 and everything worked. Some other BT devices I have got recognised too.

One thing I will say: if you screw up xorg.conf in certain ways, the X server may not load. In fact, it is possible to make the system hang with some seemingly VERY minor errors in there, yet other seemingly larger errors are totally ignored. Ask me how I know... :D


Top
 

Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Sat Aug 23, 2008 12:02 pm 
 Profile

Joined: Sat Aug 23, 2008 11:50 am
Posts: 1
L0wt3ch wrote:
It pulls to the top-left-hand corner all the time


I have exactly the same problem with Hardy 8.04. When I calibrate the controller with jscalibrator it just goes down slowly to the bottom-right and I can't move the cursor with the stick (except for having it full upwards or left stops the movement in the opposite direction).

How can I stop it pulling one way and make it control my mouse properly?

Edit: Fixed this by using jscal instead of jscalibrator to calibrate the joystick. At first this didn't work (it would get half way through the axes and stop) - you have to set everything to 0 first:
Code:
jscal -s 16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /dev/input/js0

I'm not sure what this has done to the button axes though as they did not seem to register due to the way it moves on to the next axis when a button is pressed.


Also, the keycodes I entered for the buttons to do seem to produce the wrong keys (i.e. up, down, left, right types b, h, d, f respectively and Alt_L seems instead to type @). I'm using a UK keyboard layout if this changes anything.
Edit: Fixed this too now - after looking in man joystick I realised you can reference the relevent keys by name, which works properly and is much easier to do - perhaps this should be added to the original guide.

Now time to try bluetooth...


Top
 

Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Sun Sep 21, 2008 8:20 pm 
 Profile

Joined: Sun Sep 21, 2008 8:05 pm
Posts: 1
For those just starting out, feel free to grab my complete xorg.conf. It was put together on Intrepid Ibex. Thanks all for getting this going.

Simply run: wget http://www.gate.net/~hew/xorg.conf

I'm curious if anyone has been able to get the joystick calibrator "jscal" to load a previously saved output. Too many axes on this Sixaxis for poor jscal! :D

-Harold


Top
 

Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Sat Nov 01, 2008 3:53 pm 
 Profile

Joined: Sat Nov 01, 2008 3:32 pm
Posts: 6
JSTest shows 0 - 19 buttons active, 19 being the PS button, on my PS3 controller. That should mean that "buttons" should be set to 20 I would think (#1 - #20).

Also (and maybe the reason why 19 is enough), these code are all the type 2, pressure sensitive codes that are in the examples. Is there any way in xorg.conf to distinguish to distinguish the type 1 on/off buttons (values 1/0)?


Top
 

Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Tue Dec 23, 2008 6:40 am 
 Profile

Joined: Mon Dec 22, 2008 11:46 am
Posts: 14
hew001 wrote:
For those just starting out, feel free to grab my complete xorg.conf. It was put together on Intrepid Ibex. Thanks all for getting this going.

Simply run: wget http://www.gate.net/~hew/xorg.conf

I'm curious if anyone has been able to get the joystick calibrator "jscal" to load a previously saved output. Too many axes on this Sixaxis for poor jscal! :D

-Harold

Wow thank for this, it works really well. :D

I had to do some playing with jscalibrator to prevent the mouse from drifting to the top left (a VERY frustrating problem!) but after a restart of the XServer and some additional manual calibrating the controller works exactly how I want it to.

Do you know of an Xorg.conf config line I can add so that L2 and R2 changes to the next and previous desktops?


Top
 

Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Tue Dec 23, 2008 8:34 am 
 Profile

Joined: Mon Dec 22, 2008 11:46 am
Posts: 14
Hmm it seems I have to do this on every reboot

Log In
Run JSCalibrator
Save configuration
Restart XServer

A permanent fix would be great


Top
 

Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Fri Jan 02, 2009 2:14 am 
 Profile

Joined: Thu Jan 01, 2009 6:34 am
Posts: 2
ya im trying to get my six axis to work as a mouse but as soon as i try to get the file to install it says it cant resolve thr ports.ubuntu host name any ideas?


Top
 

Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Sun Jan 04, 2009 4:39 am 
 Profile

Joined: Sat Jan 03, 2009 11:35 pm
Posts: 3
There is no xorg.conf in my Interid install. Should we just make it from scratch? What is xorg using for its configuration?


Top
 

Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Sun Jan 04, 2009 7:03 am 
 Profile

Joined: Sat Apr 05, 2008 5:33 am
Posts: 28
Location: TRE
In Debian/Ubuntu systems there is command dexconf, 'man dexconf':

dexconf(1)

NAME
dexconf - generate Xorg X server configuration file from debconf data

SYNOPSIS
dexconf [ options ]

DESCRIPTION
dexconf retrieves values from debconf(7)'s database and uses them to build an xorg.conf file.

The information that dexconf uses is typically entered via a debconf frontend (or possibly in part by hardware autodetection
tools). Note that dexconf itself does not set any values in the debconf database; it only retrieves them. If configuration
parameters of the debconf database need to be changed, dpkg-reconfigure(8) should be used to do so.

More experienced users should feel free to use dexconf-generated configuration files as a starting point for their customiza-
tions, since individual preferences vary greatly.

OPTIONS
-h, --help
Display a usage message and exit.

-o file, --output=file
By default, dexconf writes to /etc/X11/xorg.conf This option instructs dexconf to write to file instead. Note that dexconf unconditionally overwrites its destination file if it has sufficient access rights to do so.

(rest stripped)


Top
 

Offline
 Post subject: Re: HOWTO: SIXAXIS as mouse (+more) in an X env
PostPosted: Mon Jan 05, 2009 5:00 pm 
 Profile

Joined: Mon Jan 05, 2009 4:57 pm
Posts: 1
khm...
there's nothing in my xorg.conf
Is that bad ?? :D


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3, 4  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Design By Poker Bandits