From: bugzilla-daemon@bugzilla.kernel.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon
Date: Thu, 08 Aug 2013 10:10:36 +0000 [thread overview]
Message-ID: <bug-60606-2300-v6Y64KDpM1@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-60606-2300@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=60606
--- Comment #4 from Sebastien Fievet <sebastien.fievet@free.fr> ---
(In reply to Jani Nikula from comment #3)
I reverted the patch and double checked. The workaround is enough for me.
What I do is :
1. echo OFF > /sys/kernel/debug/vgaswitcheroo/switch at init time with a rc
script. Hence I always start on the IGD with the DIS OFF :
cat /sys/kernel/debug/vgaswitcheroo/switch
0:DIS: :Off:0000:02:00.0
1:DIS-Audio: :Off:0000:02:00.1
2:IGD:+:Pwr:0000:00:02.0
2. to switch from IGD to DIS I do :
for cmd in "ON MIGD DDIS"; do
echo $cmd > /sys/kernel/debug/vgaswitcheroo/switch
done
The screen flickers a bit during the OFF -> ON -> MIGD transition
cat /sys/kernel/debug/vgaswitcheroo/switch
0:DIS: :Pwr:0000:02:00.0
1:DIS-Audio: :Pwr:0000:02:00.1
2:IGD:+:Pwr:0000:00:02.0
3.I logout/login to X. To switch back to IGD I do :
for cmd in "ON DIGD"; do
echo $cmd > /sys/kernel/debug/vgaswitcheroo/switch
done
The screen doesn't flicker.
=> I can cycle through IGD and DIS at will.
When testing your patch I was starting with both IGD and DIS ON. So initial
conditions were different :-(. Then :
1. echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch worked, while without
your patch it didn't.
2. logout/login to X
echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch worked.
3. logout/login to X
echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch screwed up the display.
So I think I have been abused by the favourable initial conditions I used when
testing your patch. Let me know if you need anything else.
--
You are receiving this mail because:
You are watching the assignee of the bug.
prev parent reply other threads:[~2013-08-08 10:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-22 19:55 [Bug 60606] New: vga_switcheroo / new Radeon DPM code mess up fbcon bugzilla-daemon
2013-07-22 20:16 ` [Bug 60606] " bugzilla-daemon
2013-08-05 12:33 ` bugzilla-daemon
2013-08-08 7:00 ` bugzilla-daemon
2013-08-08 10:10 ` bugzilla-daemon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-60606-2300-v6Y64KDpM1@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).