Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO:Fix the directfb double mouse bug
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
psofa
Guru
Guru


Joined: 28 Feb 2004
Posts: 485

PostPosted: Sat Mar 13, 2004 11:41 am    Post subject: HOWTO:Fix the directfb double mouse bug Reply with quote

Found with the help of the directfb mailinglist people!

the problem is here
DirectFB-0.9.20/inputdrivers/ps2mouse/ps2mouse.c

Code:
static char *devname[2] = { "/dev/psaux", "/dev/input/mice" };


this means that directfb waits for mouse input from both devices, so when u have both of these all the events are double.So u need to change this and leave only the mouse device u use( prolly if u have the double mouse bug u can delete either one of the 2)
for example i changed it to
Code:
static char *devname[1] = { "/dev/psaux" };


recompile ur directfb and ur all set
its rather nasty fix but its better than double clicks

yes yes this is my first usefull post :lol: :lol: :lol: :wink:
_________________
psofa
Back to top
View user's profile Send private message
raylpc
Guru
Guru


Joined: 07 Aug 2003
Posts: 310
Location: Toronto, Canada

PostPosted: Sun Mar 21, 2004 10:55 pm    Post subject: Reply with quote

I didn't want to recompile and modify the source, so I used a dirty trick. I just
Code:
echo "rm /dev/psaux" >> /etc/conf.d/local.start

This will remove /dev/pasux in every boot. I don't need it any ways.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Tue Mar 23, 2004 5:18 am    Post subject: Reply with quote

oh my. I've been one of (if not THE) first who noticed that nasty bug that prevented me using xdirectfb.

Nice job sorting that out. I think I'll give xdirectfb another test drive with this in mind.

Thanks

Added:

I'm in xdirectfb now. As I checked for the devices, I got hesitant. I'm using pure udev, so in theory, i should have only the devices that have been asked for. Since both /dev/psaux (symlinked to misc/psaux) and /dev/input/mice are there, I got scared of breaking something.

Basically, I'm asking, is there one better than the other to delete. I know it sound stupid, but I keep wondering why both are there (could be only gpm for /dev/psaux).
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
raylpc
Guru
Guru


Joined: 07 Aug 2003
Posts: 310
Location: Toronto, Canada

PostPosted: Tue Mar 23, 2004 6:31 am    Post subject: Reply with quote

afaik, /dev/psaux is for ps/2 mouse and /dev/input/mice is for usb mouse. Since I'm using a usb mouse, I just delete the ps/2 one. (although connected through a ps/2 port. I'm using a KVM switch to connect 2 boxes to one monitor. That saves me a lot of desk space and $$ too.)

I tried to cat both devices, and they're both picking up my mouse movement, although I don't know why. I assume it's safe to delete the one not used in your XFree86Config.

as for the gpm, I heard xdirectfb doesn't work well with it. But I can still use the middle click to copy and paste.

btw, do you get some black or white horizontal broken lines when you scroll a webpage? It only happens when I scroll down but not up. It's kind of weird. I'm using the vesafb driver.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Tue Mar 23, 2004 6:44 am    Post subject: Reply with quote

Thanks. I tought both devices were equivalents. I don't have a USB mouse, so I know which one to delete now.

I too have a KVM switch, altough it's a rotary mechanical one, not too ps2 friendly. But it does save space (I have 5 PCs running side be side, only one set of KVM).

Graphicaly, XDirectFB runs perfectly. The only thing I see is that it runs is a slightly lower resolution than in xfree. I use a framebuffer driver for my card, a SiS630.

Still, I miss the acceleration. Xv does not work. So I use the slow X11/Shm to watch videos and it is just yuk!

Double clicking fixed, as a desktop, it's quite usable.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
raylpc
Guru
Guru


Joined: 07 Aug 2003
Posts: 310
Location: Toronto, Canada

PostPosted: Tue Mar 23, 2004 6:58 am    Post subject: Reply with quote

My pleasure :) Nice you have xdirectfb running well. My 2 display cards (one i830M, one GForce 2MX) are not friendly to framebuffer. I couldn't get frame buffer for the i830M, and the rivafb for nvidia gives weird console fonts. Maybe, I will try the fdo xserver, or buy another graphic card (when I got my co-op job :))
Back to top
View user's profile Send private message
psofa
Guru
Guru


Joined: 28 Feb 2004
Posts: 485

PostPosted: Tue Mar 23, 2004 5:31 pm    Post subject: Reply with quote

now if readeonfb would work with bootsplash.... be afraid xfree!
_________________
psofa
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum