Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
svgalib_helper module loads w/ kern 2.6.10 but no /dev/svga
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Palhoto
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2003
Posts: 102
Location: Iberian Peninsula

PostPosted: Sat Jan 15, 2005 3:53 pm    Post subject: svgalib_helper module loads w/ kern 2.6.10 but no /dev/svga Reply with quote

Hi,

I can load svgalib_helper with no problems at all (I have it in /etc/modules.autoload.d/kernel-2.6), but /dev/svga isn't created. /dev/svga_helper/[0-7] exist. I emerged svgalib yesterday.
EDIT: I had "/dev/svgalib_helper/" written, I've corrected it.

This is what I get from dmesg:
Code:
svgalib_helper: Initializing, version 1.9.19
svgalib_helper: device1: vendor:10de id:0326


When I try to run lincity, for example, I get:
Code:
svgalib: Cannot open /dev/svga
Is svgalib_helper module loaded?


I'm using kernel 2.6.10-r4 gentoo-dev-sources and vesafb-tng. Do I need to create /dev/svga manually?

Thanks,


Last edited by Palhoto on Mon Jan 17, 2005 10:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
thought_poet
n00b
n00b


Joined: 14 Dec 2004
Posts: 25

PostPosted: Mon Jan 17, 2005 11:30 am    Post subject: Reply with quote

I have this error on my system currently as well.
_________________
- Thought Poet
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Mon Jan 17, 2005 11:35 pm    Post subject: Reply with quote

Why don't you try symlinking /dev/svga to one of the svga_helper/ devices?
Code:
ln -s /dev/svga_helper/<NUMBER> /dev/svga

_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
saber850
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2004
Posts: 115
Location: NY

PostPosted: Thu Jan 20, 2005 10:13 am    Post subject: Reply with quote

I'm experiencing the same exact problem as the original post.

kimchi_sg wrote:
Why don't you try symlinking /dev/svga to one of the svga_helper/ devices?
Code:
ln -s /dev/svga_helper/<NUMBER> /dev/svga

No dice.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Thu Jan 20, 2005 5:31 pm    Post subject: Reply with quote

File a bug on http://bugs.gentoo.org . Last i emerged svgalib, it would create the /dev/svga device node for me. So this is a sort of bug. :-(
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
saber850
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2004
Posts: 115
Location: NY

PostPosted: Fri Jan 21, 2005 2:24 am    Post subject: Reply with quote

Ok, I got a little further.
First off, symlinking /dev/svga to /dev/svga_helper/0 does seem to work, but it's only the start.
The next step is to chmod u+s /dev/svga.
Finally, my problem was due to me trying to run lincity from an xterm as a non-priveleged user. So if you run it as root, or you run it as a non-priveleged user from the console (Ctrl+Alt+F1) it works.
My problem now is once the game starts, it says to press a key to continue. Upon doing so, the game aborts w/ this message on the console:
svgalib: Failed to initialize mouse.
Back to top
View user's profile Send private message
Palhoto
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2003
Posts: 102
Location: Iberian Peninsula

PostPosted: Fri Jan 21, 2005 2:48 am    Post subject: Reply with quote

Great job!

saber850 wrote:
So if you run it as root, or you run it as a non-priveleged user from the console (Ctrl+Alt+F1) it works.


This worked with root only; a regular user, no way..

I've tried the same thing but with "7" and it didn't work. "7" should be the default svga terminal (ctrl-alt-f8 ) so there are no conflicts with frame buffer or text console (ctrl-alt- F1 through F6) and X (ctrl-alt-F7).

saber850 wrote:
My problem now is once the game starts, it says to press a key to continue. Upon doing so, the game aborts w/ this message on the console:
svgalib: Failed to initialize mouse.


I didn't get that error, but the mouse wasn't behaving normally (it wanted to stay in the upper left corner). Probably there's some config file with a different mouse setting. I turned gpm off just to see what happens and that doesn't seem to be it. I'm using an IMPS/2 mouse connected to the PS/2 port. I could quit normally using "q" and then "y", I'm indicating this in case anyone tries this game for testing and doesn't want to get stuck.
Back to top
View user's profile Send private message
saber850
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2004
Posts: 115
Location: NY

PostPosted: Fri Jan 21, 2005 4:00 am    Post subject: Reply with quote

Palhoto wrote:
This worked with root only; a regular user, no way..

I forgot that I had done a chmod 777 /dev/svga--that's probably why I could run it as a non-priveleged user.

Palhoto wrote:
I've tried the same thing but with "7" and it didn't work. "7" should be the default svga terminal (ctrl-alt-f8 ) so there are no conflicts with frame buffer or text console (ctrl-alt- F1 through F6) and X (ctrl-alt-F7).

So you're saying "7" did not work? Did you use "0"?

Palhoto wrote:
the mouse wasn't behaving normally (it wanted to stay in the upper left corner). Probably there's some config file with a different mouse setting.

There's a svgalib config file at /etc/vga/libvga.config with mouse settings. I also use IMPS2 connected to a PS2 port, but specifying that option (nor several others) didn't fix the problem.
Back to top
View user's profile Send private message
Palhoto
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2003
Posts: 102
Location: Iberian Peninsula

PostPosted: Fri Jan 21, 2005 11:42 am    Post subject: Reply with quote

saber850 wrote:
Palhoto wrote:
I've tried the same thing but with "7" and it didn't work. "7" should be the default svga terminal (ctrl-alt-f8 ) so there are no conflicts with frame buffer or text console (ctrl-alt- F1 through F6) and X (ctrl-alt-F7).

So you're saying "7" did not work? Did you use "0"?

Yes, that's how it worked. "7" did not work, even for root, the same error appeared, "Is svgalib_helper module loaded?".

saber850 wrote:

There's a svgalib config file at /etc/vga/libvga.config with mouse settings. I also use IMPS2 connected to a PS2 port, but specifying that option (nor several others) didn't fix the problem.

Ok, thanks for the info.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2767
Location: Pittsburgh, PA, USA

PostPosted: Mon May 16, 2005 1:37 pm    Post subject: Reply with quote

Ever get the mouse to work? I have the left corner mouse problem and editing the /etc/vga/libvga.config file did not help at all.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
saber850
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2004
Posts: 115
Location: NY

PostPosted: Mon May 16, 2005 2:17 pm    Post subject: Reply with quote

drescherjm wrote:
Ever get the mouse to work? I have the left corner mouse problem and editing the /etc/vga/libvga.config file did not help at all.

No. I gave up after a few days of trying w/out any luck.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2767
Location: Pittsburgh, PA, USA

PostPosted: Mon May 16, 2005 3:39 pm    Post subject: Reply with quote

Thank You. I will probably do the same but if I find a solution I will try to report back here.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
thedukane
n00b
n00b


Joined: 17 Jul 2002
Posts: 22
Location: Lewisville, TX USA

PostPosted: Sat Sep 10, 2005 3:41 pm    Post subject: This link fixed my problem Reply with quote

http://forums.gentoo.org/viewtopic-t-337386-highlight-svgalib+initialize+mouse.html[/post]
_________________
Thanks for your asistance and constructive criticism.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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