View previous topic :: View next topic |
Author |
Message |
Motoi-Sakuraba-Milfeuille Tux's lil' helper
Joined: 14 Dec 2004 Posts: 125
|
Posted: Sun May 15, 2005 3:12 am Post subject: svgalib, links, and gpm |
|
|
Whenever I use links and the svgalib driver, svgalib always says "failed to initialize mouse". I understand that gpm needs to be emerged, so I installed it, and added it to the runlevel. It works fine now. However links with svgalib still refuses to initialize the mouse!
I'm on svgalib 1.9.19. I did re-emerge links and svgalib with gpm in my USE flags after installing gpm. _________________ When you are clever, you realize you are stupid; when you are stupid, you realize you are clever. |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Sun May 15, 2005 3:48 am Post subject: |
|
|
Try specifying Code: | mdev /dev/input/mice | in your /etc/vga/libvga.config file. _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
Motoi-Sakuraba-Milfeuille Tux's lil' helper
Joined: 14 Dec 2004 Posts: 125
|
Posted: Sun May 15, 2005 6:08 am Post subject: |
|
|
it works now! Thank you so much!!! _________________ When you are clever, you realize you are stupid; when you are stupid, you realize you are clever. |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Sun May 15, 2005 6:33 am Post subject: |
|
|
Excellent. Glad I could help. _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
paras_rasmatazz n00b
Joined: 21 Apr 2004 Posts: 39
|
Posted: Sun Jun 04, 2006 8:57 am Post subject: |
|
|
Sorry, but this doesn't work for me when starting links2 (or any other program which uses svgalib for graphics output) as a non-root user. After fiddling around with the mousedevice permissions a bit, I changed
crw-r--r-- 1 root root 13, 63 4. Jun 2006 /dev/input/mice
to
crw-rw-rw 1 root root 13, 63 4. Jun 2006 /dev/input/mice
and suddenly the mouse started working in non-root svgalib apps.
Obviously /dev/input/mice needs write access in order to let non-root users use the mouse in svgalib apps. Seems rather strange to me because i can't see what a program could SEND to a mouse, maybe it needs write access during svgalibs mouse initialization routine only ? |
|
Back to top |
|
|
ztomiccomputers n00b
Joined: 27 Feb 2007 Posts: 3
|
Posted: Thu Mar 08, 2007 2:35 am Post subject: |
|
|
rw chmod helped me. thanx for the post.
was tryin to get advancemame and advancemenu working in svga mode:
this should work (sorry if I'm off topic):
build advancemame and advancemenu from source (quick and easy: if you emerge and use SDL, you can run in X. don't do the rest of this)
> emerge svgalib
> cp ADVMAME-SRC_DIR/config/mame/svgalib/svgalib-devfs.sh /etc/udev/scripts/
edit /etc/vga/libvga.conf (mouse is IMPS2 or PS2, etc.)
> chmod a+rw /dev/input/mice
> modprobe svgalib-helper
> modules-update
> advancemame
> advancemenu
> advcfg -advmenuc
> advcfg
> advmenu
12 easy steps! (yeah right!) no it's not easy. very poor documentation on the issue. next step is getting Daphne working with advancemenu. |
|
Back to top |
|
|
ztomiccomputers n00b
Joined: 27 Feb 2007 Posts: 3
|
Posted: Thu Mar 08, 2007 4:20 am Post subject: |
|
|
well heck!
chmod /dev/input/mice works but only until reboot. Udev creates the device anew and thus permissions are reset.
anyone have an idea?
also; will have to insert svgalib-helper into /etc/modules.autoload.d/kernel-2.6 to get it to load on reboot. |
|
Back to top |
|
|
|