Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can you use the mouse in a framebuffer console?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Lethality
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2006
Posts: 118

PostPosted: Sat May 03, 2008 6:46 pm    Post subject: Can you use the mouse in a framebuffer console? Reply with quote

I run links2 with a graphical interface on the framebuffer, and there is a cursor there, but I can't move it.
Is it possible to use the mouse/touchpad in the framebuffer, and how?
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Sat May 03, 2008 7:06 pm    Post subject: Reply with quote

You need the sys-libs/gpm package and the gpm service must be running (/etc/init.d/gpm start). Note that it's incompatible with X Windows: you have to stop gpm to run X and vice versa. Runlevels are good for this (e.g., I have a console runlevel that includes gpm and my default runlevel (for GDM/GNOME) does not).
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Lethality
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2006
Posts: 118

PostPosted: Sat May 03, 2008 7:28 pm    Post subject: Reply with quote

Ok I installed and started gpm, but the cursor in links2 still doesn't move when I move the mouse.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat May 03, 2008 7:37 pm    Post subject: Reply with quote

Lethality wrote:
Ok I installed and started gpm, but the cursor in links2 still doesn't move when I move the mouse.


of course, you need to re-emerge links with the gpm use-flag :P

echo "www-client/links gpm" >> /etc/portage/package.use

or set the gpm flag globally in /etc/make.conf
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Lethality
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2006
Posts: 118

PostPosted: Sat May 03, 2008 7:48 pm    Post subject: Reply with quote

I did recompile. I think it is a problem with directfb rather than gpm. Is there a way to configure directfb to use input devices?`The mouse works when I run links without the gui.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat May 03, 2008 8:00 pm    Post subject: Reply with quote

Lethality wrote:
I did recompile. I think it is a problem with directfb rather than gpm. Is there a way to configure directfb to use input devices?`The mouse works when I run links without the gui.


/etc/directfbrc

Code:
directfbrc
system=fbdev
mode=1024x768
depth=16
no-banner
hardware
vt-switching

#mouse-protocol=IMPS/2
mouse-gpm-source

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Lethality
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2006
Posts: 118

PostPosted: Sun May 04, 2008 1:10 pm    Post subject: Reply with quote

Thanks for the tip. I wrote that config file, but it still doesn't work.

I tried mouse-protocol=PS/2 too.

Edit: It could be a links2 problem now.
Edit again: Everything works with the fb driver, directfb mouse is still not working.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun May 04, 2008 2:54 pm    Post subject: Reply with quote

Lethality wrote:
Thanks for the tip. I wrote that config file, but it still doesn't work.

I tried mouse-protocol=PS/2 too.

Edit: It could be a links2 problem now.
Edit again: Everything works with the fb driver, directfb mouse is still not working.


check that it can be read by users & links2 has suid bit set <== this is crucial for users, otherwise it only works for root
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D


Last edited by kernelOfTruth on Mon May 05, 2008 5:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun May 04, 2008 2:55 pm    Post subject: Reply with quote

Lethality wrote:
I did recompile. I think it is a problem with directfb rather than gpm. Is there a way to configure directfb to use input devices?`The mouse works when I run links without the gui.


there is:

set this in /etc/make.conf

Code:
INPUT_DEVICES="keyboard mouse linuxinput ps2mouse serialmouse"

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon May 05, 2008 5:21 pm    Post subject: Reply with quote

just tried it out:

it works so check, that you set up properly:

input_devices

video_cards

suid-bit on links2

gpm use-flag set for DirectFB and links and other needed flags (just set a few more :wink: )

Quote:
ls -l /etc/directfbrc
-rw-r--r-- 1 root root 110 3. Mai 22:00 /etc/directfbrc

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Mon May 05, 2008 6:43 pm    Post subject: Reply with quote

timeBandit wrote:
Note that it's incompatible with X Windows: you have to stop gpm to run X and vice versa.

Not always, at least not with an USB mouse. I use an USB mouse on two computers running Gentoo, and I never had any problem related to Xorg and GPM. The touchpad and the trackpoint on my T61p, which are PS/2 devices (as far I know), are also working correctly with Xorg and GPM.
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Mon May 05, 2008 9:51 pm    Post subject: Reply with quote

Link31 wrote:
timeBandit wrote:
Note that it's incompatible with X Windows: you have to stop gpm to run X and vice versa.

Not always, at least not with an USB mouse. I use an USB mouse on two computers running Gentoo, and I never had any problem related to Xorg and GPM. The touchpad and the trackpoint on my T61p, which are PS/2 devices (as far I know), are also working correctly with Xorg and GPM.
I think it's actually GDM that hogs the mouse, not X per se. Empirically I know I can't have both, I just should have given a bit more thought to the real culprit. :oops: Thanks.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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