]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - Documentation/power/video.txt
[PATCH] don't use flush_tlb_all in suspend time
[mirror_ubuntu-bionic-kernel.git] / Documentation / power / video.txt
CommitLineData
1da177e4
LT
1
2 Video issues with S3 resume
3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
543cc27d 4 2003-2006, Pavel Machek
1da177e4
LT
5
6During S3 resume, hardware needs to be reinitialized. For most
7devices, this is easy, and kernel driver knows how to do
8it. Unfortunately there's one exception: video card. Those are usually
9initialized by BIOS, and kernel does not have enough information to
10boot video card. (Kernel usually does not even contain video card
11driver -- vesafb and vgacon are widely used).
12
13This is not problem for swsusp, because during swsusp resume, BIOS is
36fabc24
PM
14run normally so video card is normally initialized. It should not be
15problem for S1 standby, because hardware should retain its state over
16that.
1da177e4 17
543cc27d
PM
18We either have to run video BIOS during early resume, or interpret it
19using vbetool later, or maybe nothing is neccessary on particular
20system because video state is preserved. Unfortunately different
21methods work on different systems, and no known method suits all of
22them.
23
24Userland application called s2ram has been developed; it contains long
25whitelist of systems, and automatically selects working method for a
26given system. It can be downloaded from CVS at
27www.sf.net/projects/suspend . If you get a system that is not in the
28whitelist, please try to find a working solution, and submit whitelist
29entry so that work does not need to be repeated.
30
31Currently, VBE_SAVE method (6 below) works on most
32systems. Unfortunately, vbetool only runs after userland is resumed,
33so it makes debugging of early resume problems
34hard/impossible. Methods that do not rely on userland are preferable.
35
36Details
37~~~~~~~
38
1da177e4
LT
39There are a few types of systems where video works after S3 resume:
40
41(1) systems where video state is preserved over S3.
42
43(2) systems where it is possible to call the video BIOS during S3
44 resume. Unfortunately, it is not correct to call the video BIOS at
45 that point, but it happens to work on some machines. Use
46 acpi_sleep=s3_bios.
47
48(3) systems that initialize video card into vga text mode and where
49 the BIOS works well enough to be able to set video mode. Use
50 acpi_sleep=s3_mode on these.
51
52(4) on some systems s3_bios kicks video into text mode, and
53 acpi_sleep=s3_bios,s3_mode is needed.
54
55(5) radeon systems, where X can soft-boot your video card. You'll need
a4ffad5b
PM
56 a new enough X, and a plain text console (no vesafb or radeonfb). See
57 http://www.doesi.gmxhome.de/linux/tm800s3/s3.html for more information.
58 Alternatively, you should use vbetool (6) instead.
1da177e4
LT
59
60(6) other radeon systems, where vbetool is enough to bring system back
61 to life. It needs text console to be working. Do vbetool vbestate
62 save > /tmp/delme; echo 3 > /proc/acpi/sleep; vbetool post; vbetool
63 vbestate restore < /tmp/delme; setfont <whatever>, and your video
64 should work.
65
66(7) on some systems, it is possible to boot most of kernel, and then
67 POSTing bios works. Ole Rohne has patch to do just that at
68 http://dev.gentoo.org/~marineam/patch-radeonfb-2.6.11-rc2-mm2.
69
7e958883
PM
70(8) on some systems, you can use the video_post utility mentioned here:
71 http://bugzilla.kernel.org/show_bug.cgi?id=3670. Do echo 3 > /sys/power/state
72 && /usr/sbin/video_post - which will initialize the display in console mode.
73 If you are in X, you can switch to a virtual terminal and back to X using
74 CTRL+ALT+F1 - CTRL+ALT+F7 to get the display working in graphical mode again.
75
1da177e4
LT
76Now, if you pass acpi_sleep=something, and it does not work with your
77bios, you'll get a hard crash during resume. Be careful. Also it is
78safest to do your experiments with plain old VGA console. The vesafb
79and radeonfb (etc) drivers have a tendency to crash the machine during
80resume.
81
82You may have a system where none of above works. At that point you
83either invent another ugly hack that works, or write proper driver for
84your video card (good luck getting docs :-(). Maybe suspending from X
85(proper X, knowing your hardware, not XF68_FBcon) might have better
86chance of working.
87
36fabc24 88Table of known working notebooks:
1da177e4
LT
89
90Model hack (or "how to do it")
91------------------------------------------------------------------------------
92Acer Aspire 1406LC ole's late BIOS init (7), turn off DRI
93Acer TM 242FX vbetool (6)
7e958883
PM
94Acer TM C110 video_post (8)
95Acer TM C300 vga=normal (only suspend on console, not in X), vbetool (6) or video_post (8)
1da177e4 96Acer TM 4052LCi s3_bios (2)
36fabc24 97Acer TM 636Lci s3_bios,s3_mode (4)
1da177e4
LT
98Acer TM 650 (Radeon M7) vga=normal plus boot-radeon (5) gets text console back
99Acer TM 660 ??? (*)
100Acer TM 800 vga=normal, X patches, see webpage (5) or vbetool (6)
101Acer TM 803 vga=normal, X patches, see webpage (5) or vbetool (6)
102Acer TM 803LCi vga=normal, vbetool (6)
103Arima W730a vbetool needed (6)
104Asus L2400D s3_mode (3)(***) (S1 also works OK)
a4ffad5b 105Asus L3350M (SiS 740) (6)
1da177e4 106Asus L3800C (Radeon M7) s3_bios (2) (S1 also works OK)
a4ffad5b 107Asus M6887Ne vga=normal, s3_bios (2), use radeon driver instead of fglrx in x.org
1da177e4
LT
108Athlon64 desktop prototype s3_bios (2)
109Compal CL-50 ??? (*)
110Compaq Armada E500 - P3-700 none (1) (S1 also works OK)
111Compaq Evo N620c vga=normal, s3_bios (2)
112Dell 600m, ATI R250 Lf none (1), but needs xorg-x11-6.8.1.902-1
113Dell D600, ATI RV250 vga=normal and X, or try vbestate (6)
2a962065 114Dell D610 vga=normal and X (possibly vbestate (6) too, but not tested)
1da177e4
LT
115Dell Inspiron 4000 ??? (*)
116Dell Inspiron 500m ??? (*)
2a962065 117Dell Inspiron 510m ???
1da177e4
LT
118Dell Inspiron 600m ??? (*)
119Dell Inspiron 8200 ??? (*)
120Dell Inspiron 8500 ??? (*)
121Dell Inspiron 8600 ??? (*)
122eMachines athlon64 machines vbetool needed (6) (someone please get me model #s)
123HP NC6000 s3_bios, may not use radeonfb (2); or vbetool (6)
124HP NX7000 ??? (*)
125HP Pavilion ZD7000 vbetool post needed, need open-source nv driver for X
126HP Omnibook XE3 athlon version none (1)
127HP Omnibook XE3GC none (1), video is S3 Savage/IX-MV
543cc27d 128HP Omnibook 5150 none (1), (S1 also works OK)
1da177e4
LT
129IBM TP T20, model 2647-44G none (1), video is S3 Inc. 86C270-294 Savage/IX-MV, vesafb gets "interesting" but X work.
130IBM TP A31 / Type 2652-M5G s3_mode (3) [works ok with BIOS 1.04 2002-08-23, but not at all with BIOS 1.11 2004-11-05 :-(]
131IBM TP R32 / Type 2658-MMG none (1)
132IBM TP R40 2722B3G ??? (*)
133IBM TP R50p / Type 1832-22U s3_bios (2)
a4ffad5b 134IBM TP R51 none (1)
1da177e4
LT
135IBM TP T30 236681A ??? (*)
136IBM TP T40 / Type 2373-MU4 none (1)
137IBM TP T40p none (1)
138IBM TP R40p s3_bios (2)
139IBM TP T41p s3_bios (2), switch to X after resume
a4ffad5b 140IBM TP T42 s3_bios (2)
1da177e4
LT
141IBM ThinkPad T42p (2373-GTG) s3_bios (2)
142IBM TP X20 ??? (*)
9587c4bf 143IBM TP X30 s3_bios, s3_mode (4)
1da177e4 144IBM TP X31 / Type 2672-XXH none (1), use radeontool (http://fdd.com/software/radeon/) to turn off backlight.
543cc27d 145IBM TP X32 none (1), but backlight is on and video is trashed after long suspend. s3_bios,s3_mode (4) works too. Perhaps that gets better results?
1da177e4 146IBM Thinkpad X40 Type 2371-7JG s3_bios,s3_mode (4)
543cc27d 147IBM TP 600e none(1), but a switch to console and back to X is needed
1da177e4
LT
148Medion MD4220 ??? (*)
149Samsung P35 vbetool needed (6)
543cc27d 150Sharp PC-AR10 (ATI rage) none (1), backlight does not switch off
374a6cf2 151Sony Vaio PCG-C1VRX/K s3_bios (2)
1da177e4 152Sony Vaio PCG-F403 ??? (*)
543cc27d
PM
153Sony Vaio PCG-GRT995MP none (1), works with 'nv' X driver
154Sony Vaio PCG-GR7/K none (1), but needs radeonfb, use radeontool (http://fdd.com/software/radeon/) to turn off backlight.
1da177e4
LT
155Sony Vaio PCG-N505SN ??? (*)
156Sony Vaio vgn-s260 X or boot-radeon can init it (5)
543cc27d
PM
157Sony Vaio vgn-S580BH vga=normal, but suspend from X. Console will be blank unless you return to X.
158Sony Vaio vgn-FS115B s3_bios (2),s3_mode (4)
1da177e4 159Toshiba Libretto L5 none (1)
543cc27d
PM
160Toshiba Portege 3020CT s3_mode (3)
161Toshiba Satellite 4030CDT s3_mode (3) (S1 also works OK)
162Toshiba Satellite 4080XCDT s3_mode (3) (S1 also works OK)
1da177e4
LT
163Toshiba Satellite 4090XCDT ??? (*)
164Toshiba Satellite P10-554 s3_bios,s3_mode (4)(****)
2a962065 165Toshiba M30 (2) xor X with nvidia driver using internal AGP
1da177e4
LT
166Uniwill 244IIO ??? (*)
167
36fabc24
PM
168Known working desktop systems
169~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
170
171Mainboard Graphics card hack (or "how to do it")
172------------------------------------------------------------------------------
173Asus A7V8X nVidia RIVA TNT2 model 64 s3_bios,s3_mode (4)
174
1da177e4
LT
175
176(*) from http://www.ubuntulinux.org/wiki/HoaryPMResults, not sure
177 which options to use. If you know, please tell me.
178
179(***) To be tested with a newer kernel.
180
181(****) Not with SMP kernel, UP only.