Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Xfbdev resolution< Next Oldest | Next Newest >
lucky13 Offline

Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: July 06 2007,12:21 QUOTE

Andrew, have you tried setting a symlink between what torsmo (0.17) is looking for and where your battery status is? Works for me on my laptop.

"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
stupid_idiot Offline

Group: Members
Posts: 344
Joined: Oct. 2006
Posted: July 07 2007,17:17 QUOTE

The commands below will only work if you use a hardware-specific framebuffer module, and NOT vesafb - vesafb is what you get by default on DSL where the choice of framebuffer resolution is fixed at boot-time by boot codes such as 'vga=791'. If you want to adjust framebuffer resolution from the text console when DSL is running, you should avoid using such a boot code. However, it is not enough to simply avoid using 'vga=7xx', because vesafb will still be loaded - only it will autodetect a suitable video mode. You MUST override the loading of vesafb by using the 'vga=normal' boot code, so that no framebuffer modules whatsoever are loaded at startup. After DSL has booted up, you can modprobe the framebuffer module that matches your hardware. The available modules are found in '/lib/modules/2.4.26/kernel/drivers/video/'. Once you have decided which module is suitable, load it with `modprobe`:
`modprobe atyfb` (older ati cards up to 'rage' series)
`modprobe aty128fb` (ati 'rage128' only)
`modprobe radeonfb` (ati radeon series)
`modprobe rivafb` (nvidia cards)
etc etc.

You can adjust the framebuffer resolution from the text console using the `fbset` program. It is not very big, just a small little program. You can get the deb or the source here. Then, set the resolution:
`fbset -a [mode_name]`
(`-a` means to apply mode to all ttys - it's optional.
The [mode_name] comes from the textfile '/etc/fb.modes'. This file comes standard with the fbset Debian package.)

'/etc/fb.modes' contains entries like this:
mode "640x480-60"
   # D: 25.175 MHz, H: 31.469 kHz, V: 59.94 Hz
   geometry 640 480 640 480 8
   timings 39722 48 16 33 10 96 2

mode "640x480-75"
   # D: 31.50 MHz, H: 37.500 kHz, V: 75.00 Hz
   geometry 640 480 640 480 8
   timings 31747 120 16 16 1 64 3

etc etc (800x600, 1024x768, and others)

The last number in 'geometry' (8 - emphasis mine) refers to the color depth. Depths like 32, 24, and 16 can be used.
After you've edited the mode to your liking, load the mode (THIS MUST BE DONE FROM THE TEXT CONSOLE!!):
`fbset -a 1024x768-75`
The text console should switch to the mode specified.
Then start the framebuffer Xserver:
1. Select 'Xfbdev' in if you have not done so.
2. `startx`
Back to top
Profile PM 
6 replies since July 04 2007,08:19 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Xfbdev resolution

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code