(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    % sudo ./915resolution -l
9    Intel 800/900 Series VBIOS Hack : version 0.5.3
10
11    Chipset: 915GM
12    BIOS: TYPE 1
13    Mode Table Offset: $C0000 + $269
14    Mode Table Entries: 36
15    ...
16    Mode 41 : 640x480, 16 bits/pixel
17    ...
18  
19 Set it to 1024x600 for example:
20
21    % sudo ./915resolution 41 1024 600
22
23 Then load vesa:
24
25    % kldload vesa
26
27 And use vidcontrol:
28
29    % vidcontrol -i mode|grep 1024
30     257 (0x101) 0x0000000f G 1024x600x8 1    8x16  0xa0000 64k 64k 0xd0000000 7872k
31     273 (0x111) 0x0000000f G 1024x600x16 1   8x16  0xa0000 64k 64k 0xd0000000 7872k
32     274 (0x112) 0x0000000f G 1024x600x32 1   8x16  0xa0000 64k 64k 0xd0000000 7872k
33
34    % vidcontrol MODE_273