(no commit message)
[ikiwiki.git] / docs / user / laptoptipsandtricks / index.mdwn
1 # PCI
2 This one will set all the devices without a loaded driver into sleep state.
3
4     hw.pci.do_power_nodriver=3
5
6 # console
7 You can get full console resolution on an Intel 945-series graphics adapter with 915resolution. Find some spare mode like 640x480:
8
9    % sudo ./915resolution -l
10    Intel 800/900 Series VBIOS Hack : version 0.5.3
11
12    Chipset: 915GM
13    BIOS: TYPE 1
14    Mode Table Offset: $C0000 + $269
15    Mode Table Entries: 36
16    ...
17    Mode 41 : 640x480, 16 bits/pixel
18    ...
19  
20 Set it to 1024x600 for example:
21
22    % sudo ./915resolution 41 1024 600
23
24 Then load vesa:
25
26    % kldload vesa
27
28 And use vidcontrol:
29
30    % vidcontrol -i mode|grep 1024
31     257 (0x101) 0x0000000f G 1024x600x8 1    8x16  0xa0000 64k 64k 0xd0000000 7872k
32     273 (0x111) 0x0000000f G 1024x600x16 1   8x16  0xa0000 64k 64k 0xd0000000 7872k
33     274 (0x112) 0x0000000f G 1024x600x32 1   8x16  0xa0000 64k 64k 0xd0000000 7872k
34
35    % vidcontrol MODE_273