
Is there a way to boot grml with the screen rotated. Once X starts there is xrandr, but console is puzzling.
M.

* Mark wrote [27.11.06 00:52]: Hi,
Is there a way to boot grml with the screen rotated. Once X starts there is xrandr, but console is puzzling.
Have a look at linux/Documentation/fb/fbcon.txt
,---- | 4. fbcon=rotate:<n> | | This option changes the orientation angle of the console display. The | value 'n' accepts the following: | | 0 - normal orientation (0 degree) | 1 - clockwise orientation (90 degrees) | 2 - upside down orientation (180 degrees) | 3 - counterclockwise orientation (270 degrees) | | The angle can be changed anytime afterwards by 'echoing' the same | numbers to any one of the 2 attributes found in | /sys/class/graphics/fbcon | | rotate - rotate the display of the active console | rotate_all - rotate the display of all consoles | | Console rotation will only become available if Console Rotation | Support is compiled in your kernel. | | NOTE: This is purely console rotation. Any other applications that | use the framebuffer will remain at their 'normal'orientation. | Actually, the underlying fb driver is totally ignorant of console | rotation. `----
So one solution is to create a startup script which change /sys/class/graphics/fbcon or add a boot parameter.
M.
HTH Uli

So one solution is to create a startup script which change /sys/class/graphics/fbcon or add a boot parameter.
Consider a lilo.conf stanza like
image=/boot/vmlinuz-2.6.17-grml label="grml-hires" append="grml_from_hd noswap video=vesafb:1280x1024-8@60 " read-only vga=775 initrd=/boot/initrd.img-2.6.17-grml
How would you add a boot parameter for console rotation? (syntax please)
We'd prefer nvidia's native driver, if you can tell us the syntax for that. I'm not sure it's possible/supported/reasonable. Maybe nvidia drivers are strictly X11 so that the board firmware is all you get from the vendor for console work.
M.

* Mark wrote [27.11.06 07:43]: Hi,
So one solution is to create a startup script which change /sys/class/graphics/fbcon or add a boot parameter.
Consider a lilo.conf stanza like
image=/boot/vmlinuz-2.6.17-grml label="grml-hires" append="grml_from_hd noswap video=vesafb:1280x1024-8@60 " read-only vga=775 initrd=/boot/initrd.img-2.6.17-grml
How would you add a boot parameter for console rotation? (syntax please)
append="grml_from_hd noswap video=vesafb:1280x1024-8@60 fbcon=rotate:$number" e.g. append="grml_from_hd noswap video=vesafb:1280x1024-8@60 fbcon=rotate:1"
M.
HTH Uli

append="grml_from_hd noswap video=vesafb:1280x1024-8@60 fbcon=rotate:1"
Thanks! That works. The console is solved, modulo minor timing/sync/hpos/vpos glitches.
But X has a problem. The problem is getting X to start in portrait mode. The user wants the whole PC to launch in portrait from console to X.
Two possibilities exist for xorg.conf with nvidia:
Option "RandRRotation" "true" # Option "Rotate" "CCW" # careful, disables randr module!
The user needs "RandRRotation" so we can't use "Rotate". Rotate will start X in portrait mode, but prohibits landscape (by disabling RandR). The user needs both modes available.
("Rotate" also introduces ugly video timing/sync problems not present in RandR, which works beautifully in comparison.)
So how to start X with r-and-r active in portrait mode?
Thanks, M.

For people who may google later, here is a nice recipe. If you drive an LCD from non-DVI, analog 15-pin video (still common), and console or X11 won't lock to LCD native resolution:
1. Create a modeline using videogen for /etc/X11/xorg.conf. Use monitor specs from the vendor's manual.
2. Use the monitor's (auto-)adjustments to sync with that mode, producing lock. Either gddccontrol, monitor buttons, or vendor programs will do it. The idea is to put the right settings into monitor firmware.
3. Run modeline2fb against /etc/X11/xorg.conf and append the output to /etc/fb.modes. The framebuffer mode format is different from xorg.conf format.
4. Edit /etc/lilo.conf to call the appropriate mode, e.g. append="grml_from_hd noswap video=vesafb:Samsung971p fbcon=rotate:3 " # portrait rotation
5. Run lilo -v to enact changes.
6. Reboot.
We get pretty good results this way. We're still tweaking. Any comments/advice would be appreciated. BTW videogen is a nice tool because it produces both mode formats.
Teilnehmer (2)
-
Mark
-
Ulrich Dangel