Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
svgalib, links, and gpm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Motoi-Sakuraba-Milfeuille
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2004
Posts: 114

PostPosted: Sun May 15, 2005 3:12 am    Post subject: svgalib, links, and gpm Reply with quote

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
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sun May 15, 2005 3:48 am    Post subject: Reply with quote

Try specifying
Code:
mdev /dev/input/mice
in your /etc/vga/libvga.config file.
_________________
~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
Motoi-Sakuraba-Milfeuille
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2004
Posts: 114

PostPosted: Sun May 15, 2005 6:08 am    Post subject: Reply with quote

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
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sun May 15, 2005 6:33 am    Post subject: Reply with quote

Excellent. Glad I could help. 8)
_________________
~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
paras_rasmatazz
n00b
n00b


Joined: 21 Apr 2004
Posts: 39

PostPosted: Sun Jun 04, 2006 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
ztomiccomputers
n00b
n00b


Joined: 27 Feb 2007
Posts: 3

PostPosted: Thu Mar 08, 2007 2:35 am    Post subject: Reply with quote

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
View user's profile Send private message
ztomiccomputers
n00b
n00b


Joined: 27 Feb 2007
Posts: 3

PostPosted: Thu Mar 08, 2007 4:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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