Michael Trimarchi schrieb:
> Nils Faerber wrote:
>> Hi!
>> Probably someone has an idea about that one...
>>
>> I recompiled my kernel without console VT support (I do not need it
>> since I cannot read the small font rushing by anyway). This also has the
>> side effect that the kernel does not switch to a text VT upon suspend
>> and thus also not vom VT back to X on resume (which I also like since it
>> gives a better UI impression - push the power button it "just switches
>> off", push again and it is instantaniously back where it left).
>>   
> Can you send the git id and your configuration?

GIT is latest andy-tracking head (happens with any version up to head)
and the config is basically as I posted it a few days ago for my Ar6k
problem (which works now) except for the removal of the VT console
support. The same functionality is reached with the attached patch and
setting the new option to "n" (BTW: I would also like to see this patch
go upstream ;)
The same patch/modification works without problems on GTA01 so I would
suspect something around glamo, but there might be other nitty gritty
details involved...

> Regards Michael
Cheers
  nils faerber

-- 
kernel concepts GbR        Tel: +49-271-771091-12
Sieghuetter Hauptweg 48    Fax: +49-271-771091-19
D-57072 Siegen             Mob: +49-176-21024535
http://www.kernelconcepts.de
--- git/kernel/power/Kconfig-o  2009-03-03 01:34:28.000000000 +0100
+++ git/kernel/power/Kconfig    2009-03-03 01:34:10.000000000 +0100
@@ -61,6 +61,17 @@
        CAUTION: this option will cause your machine's real-time clock to be
        set to an invalid time after a resume.
 
+config PM_SUSPEND_CONSOLE
+       bool "Switch to a virtual console upon suspend"
+       default y
+       ---help---
+       If console on virtual terminal support is available then the kernel
+       will switch to a free virtual terminal upon suspend and return to
+       the current virtual terminal after resume.
+       This might make some suspend debug or error output visible to the
+       user but might incur the additional delay of VT switch and probably
+       also switch away from a running GUI on the framebuffer etc.
+
 config PM_SLEEP_SMP
        bool
        depends on SUSPEND_SMP_POSSIBLE || HIBERNATION_SMP_POSSIBLE
--- git/kernel/power/console.c-o        2009-03-03 01:34:47.000000000 +0100
+++ git/kernel/power/console.c  2009-03-03 01:26:55.000000000 +0100
@@ -20,12 +20,17 @@
 
        orig_fgconsole = fg_console;
 
+#if defined(CONFIG_PM_SUSPEND_CONSOLE)
        if (vc_allocate(SUSPEND_CONSOLE)) {
          /* we can't have a free VC for now. Too bad,
           * we don't want to mess the screen for now. */
                release_console_sem();
                return 1;
        }
+#else
+       release_console_sem();
+       return 1;
+#endif
 
        if (set_console(SUSPEND_CONSOLE)) {
                /*

Reply via email to