svgalib doens't work during system startup - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

svgalib doens't work during system startup

I've made a program to display a nice .bmp file while system starts up in background. Making the program is really easy, but putting it at startup drove me nuts. I've solved most troubles, but I still have one.

Svgalib displays this error:

"You need to be the owner of the current console to use svgalib. Not running on a graphics capable console, and unable to find one."

The weird part is that it works fine if I log in as root and restart(doesn't matter if I use 'shutdown -r' or press 'reset'). But it displays the error if I log with another user.

According to 'man vga_init', this function should return -1 on this error, but it actually returns 0. Can anybody explain why?

Sign In or Register to comment.