Skip to contentSkip to conversation

help with consolupdate on modechange in driver

DISCUSSION Thomas S. Iversen 3 participants 4 messages Sep 22, 2003 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Hi

I have just implemented modechange in my driver and while it works, the consol *still* thinks we working in the old mode.

How do I inform the console layer that the driver (through fbset) have changed the actual mode on the screen?

Regards Thomas, Denmark

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw
Quoted 7 lines · Thomas S. Iversen

Hi

I have just implemented modechange in my driver and while it works, the consol *still* thinks we working in the old mode.

How do I inform the console layer that the driver (through fbset) have changed the actual mode on the screen?

rivafb has this same problem.

-solca

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#2 lore raw
Quoted 8 lines
Quoted 6 lines

I have just implemented modechange in my driver and while it works, the consol *still* thinks we working in the old mode.

How do I inform the console layer that the driver (through fbset) have changed the actual mode on the screen?

rivafb has this same problem.

stty is the program you want to use to change the resolution on a tty. At present fbset is not functioning. Patches are in the works to restore this.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#3 lore raw
Quoted 4 lines · James Simmons
Quoted 4 lines
Quoted 4 lines

I have just implemented modechange in my driver and while it works, the consol *still* thinks we working in the old mode.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

How do I inform the console layer that the driver (through fbset) have changed the actual mode on the screen?

rivafb has this same problem.

stty is the program you want to use to change the resolution on a tty. At present fbset is not functioning. Patches are in the works to restore this.

probably we would not need fbset anymore if drivers support sysfs AND they export valid modes for the current card as the drivers know far better that crappy /etc/fb.modes, any progress or this is not the plan?

In other point, i am including fb.h from the latest development linux kernel (2.6.0-test5-bk3) and is not suitable for use from userpace, here is a tiny patch to fix it, but i am not sure if the struct fb_pixmap is needed from userspace as i never have used it?

3a4,5

Quoted 2 lines

#include <linux/tty.h>
#include <linux/workqueue.h>

4a7

Quoted 1 line

#include <asm/io.h>

326,327d328
< #ifdef __KERNEL__
<
345a347

Quoted 1 line

#ifdef __KERNEL__

347,348d348
< #include <linux/tty.h>
< #include <linux/workqueue.h>
351d350
< #include <asm/io.h>

-solca

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf