[SOLVED] 'Dim screen while inactive' not working

I have a sony vaio with GNOME 3. I suppose when it's not on AC power the screen should dim (it's ON on the Power Manager), but I wait and the screen's brightness doesn't drop a bit... I have another laptop, acer with Fedora 20 MATE, after a short while inactive the brightness drops. Which one is the culprit here?
edit: possibly a hardware hickup. When I start the system with the AC adapter off, everything works fine.
Last edited by lmello (2014-07-13 00:55:48)

In case anyone's interested:
i am now running gnome-shell on the big monitor, and openbox on the secondary monitor by calling the appropriate sessions from .xinitrc with the right display:
#!/bin/sh
DISPLAY=:0.0 exec openbox-session &
DISPLAY=:0.1 exec ck-launch-session gnome-session
It is important to call openbox first, otherwise gnome-shell tries to seize control over both screens (and fails to do so).
two little drops of bitterness remain:
1. I had to connect both monitors to the same device, because the one connected to the onboard chip was flickering really bad. this is probably unrelated, though.
2. I can't use gnome-shell as a login-manager (maybe in fallback-mode i could, but i don't want that), so now i am logging in from tty and then startx

Similar Messages

  • Displaying text on screen while connecting not working

    Hi all,
    I'm building a game to be played over Bluetooth. While the connection is made, I want to display a text message to the user stating the connection is made. Everything seems to work allright, but the messge is not shown. What goes wrong?
    Some code. I have a MyMIDlet, that creates MyGame. The MyGame object is responsible for creating the connection. MyGame implements Runnable
    public class MyGame implements Runnable {
         // Some code omitted
         public void run() {
              createSplashScreen();
                     // More code omitted
         private void createSplashScreen() {
    System.out.println ("myGame.createSplashScreen, informing players on connection process");          
              String[] message;
              if (isServer) {
                   message = new String[5];
                   message[0] = "Waiting";
                   message[1] = "on an";
                   message[2] = "Opponent";
                   message[3] = "to Join";
                   message[4] = "the Game";
              else {
                   message = new String[3];
                   message[0] = "Searching";
                   message[1] = "for a Game";
                   message[2] = "to Join";
              // Create the canvas and set it to the current display
    System.out.println ("myGame.createSplashScreen, creating SplashScreen");
              mySplashScreen = new MySplashScreen(message, FONT);
              mySplashScreen.addCommand(myMIDlet.getExitCommand());
              mySplashScreen.setCommandListener(myMIDlet.getCommandListener() );
              myMIDlet.setCanvas(mySplashScreen);
              mySplashScreen.repaint();
         }The previous code creates a MySplashScreen object:
    public class BluePongSplashScreen extends Canvas {
             // Code omitted
         public MySplashScreen (String [] theMessage, Font theFont) {
              messageLength = theMessage.length;
              message = new String [messageLength];
              System.arraycopy(theMessage, 0, message, 0, messageLength);
              font = theFont;
              // Get dimensions screen
              width  = getWidth();
              height = getHeight();
              // Start displaying message at first position
              messageIndex = messageLength - 1;
        public void showNotify() {
    System.out.println ("mySplashScreen.showNotify, creating new mytTask");
             mytTask = new MyTimerTask(this);
            new Timer().scheduleAtFixedRate(mytTask, 1500, 1000);
         public void paint (Graphics graphics){
    System.out.println ("mySplashScreen.paint, repainting message screen");          
              int textX = width/2;
              int textY = height;
              // Clear screen
              graphics.setColor(COLOR_LIGHT_BLUE);
              graphics.fillRect(0, 0, width, height);
              // Set font color
              graphics.setColor(COLOR_WHITE);
              // Write message word by word on the screen
              messageIndex = messageIndex % messageLength;
              for (int i = 0; i <= messageIndex; i++) {
    System.out.println ("mySplashScreen.paint, message[" + i + "]=" + message);
                   graphics.drawString(message[i], textX, textY,
                             Graphics.TOP | Graphics.HCENTER);
                   textY += font.getHeight();
    And then the last code of the problem, the MyTimeTask object:
    public class MyTimerTask extends TimerTask {
          * The canvas repainted periodically
         private MySplashScreen mysScreen;
          * Constructs the timer task
          * @param theScreen the canvas to be repainted
         public MyTimerTask (MySplashScreen theScreen) {
              mysScreen = theScreen;
          * Task that repaints the splash screen
         public void run () {
    System.out.println ("mytTask.run, increasing message index");
              mysScreen.increaseMessageIndex();
              mysScreen.repaint();
    }Here is some logging I copied from the text box of the WTK25 window:
    myMIDlet.commandAction: Thread myGame ended.
    myGame.createSplashScreen, informing players on connection process
    myGame.run: isGameCompleted=false
    mySplashScreen.showNotify, creating new mytTask
    mySplashScreen.paint, repainting message screen
    mySplashScreen.paint, message[0]=Waiting
    mySplashScreen.paint, message[1]=on an
    mySplashScreen.paint, message[2]=Opponent
    mySplashScreen.paint, message[3]=to Join
    mySplashScreen.paint, message[4]=the Game
    mytTask.run, increasing message index
    mySplashScreen.increaseMessageIndex, index=5
    mySplashScreen.paint, repainting message screen
    mySplashScreen.paint, message[0]=Waiting
    mytTask.run, increasing message index
    mySplashScreen.increaseMessageIndex, index=1
    mySplashScreen.paint, repainting message screen
    mySplashScreen.paint, message[0]=Waiting
    mySplashScreen.paint, message[1]=on an
    mytTask.run, increasing message indexSo clearly, the objects are created, and doing (almost) all their work, except displaying the text on the screen.
    Anyone knows how to solve this problem?
    Maik

    A Reset should help.
    If youre on nano 6th gen:
    Press and hold the Sleep/Wake button and Volume Down button simultaneously for at least eight seconds or until the Apple logo appears. You may need to repeat this step.

  • [Solved]dual screen (radeon 9200) not working properly under composite

    I am running a radeon 9200 on my desktop with monitors plugged into both the DVI and VGA outputs. I'm using the xf86-radeon-ati driver with no Xorg.conf.
    I have been using openbox for a few years now, and for as long as I remember, all I needed was:
    xrandr --output DVI-0 --auto --left-of VGA-0
    and everything works fine. Seems like xcompmgr and cairo-compmgr also work properly.
    I was experimenting with XFCE4, which works fine until I try to also use compiz as the window manager. The right side on the left monitor become jibberish, and the second monitor also becomes just as messed up, and I cannot properly drag any windows.
    The same thing happened when I installed KDE4.
    I should note two things:
    1) If I clone the two monitors, everything works fine.
    2) If I change from OpenGL to XRender (under desktop effects in KDE settings), everything works fine, just quite slowly.
    Am I right in guessing that compiz works based off of OpenGL? Is there some way to get OpenGL working properly with my setup, or is this not an option?
    Last edited by twistedcubic (2012-06-01 15:27:06)

    Gusar wrote:Depends on the resolution. It's quite possible the card's limit when it comes to opengl is 2048x2048. If the combined resolution of your displays is larger than that, you simply can't use an opengl compositor.
    Does this have anything to do with texture size? If I try to enable composite from terminal, I see some error messages regarding texture size, and after some googling it appears as if it is possible that the max texture size is 2048.

  • My lock screen button is not working and i turned off my iphone with assistive touch. Now i cant turn my phone back on!

    I used assistive touch to turn off my iphone, because my lock screen button is not working, so now i cant turn it back on! What i did was, i went to assistive touch, then i held down the lock screen button to turn it off. Now i can't turn it back on.

    To turn it back on when you use assistive touch, all you have to do is plug your iphone into a charger and it will power back on

  • What's going on with ios8... Screen rotate does not work anymore, wifi doesn't work very well anymore and apps are crashing or running slow... Come on Apple sort this mess out

    ssince I updated my iPhone 5s to ios8 ive had nothing but problems...
    first the the screen rotation is not working... Checked the settings and  lock is off.... The wifi is intermittent, some times it works sometimes it doesn't....
    the he iPhone is really slow now, like really labouring.... It hangs and crashes all the time.... I have to close apps down completely because they won't work from quick launch anymore.... Even writing this the phone is labouring.... It's like my old 48k spectrum.... I don't expect this from Apple and when you spend £400-500 on a phone you expect it to work and play propperly....  come on Apple you need to sort out this mess of a update.... Ios 7 was no bother......

    Same issue here... iphone5S 64GB.  It's intermittent.  Sometimes the rotation works fine, sometimes it doesn't, but most of the time it doesn't work.
    The first time I figured out it wasn't working was when all newly-taken photos and videos were showing up in portrait mode though I always hold in landscape mode when photographing.
    Rotation lock is disabled (tried toggling it on and off).  Tried recalibrating the compass on a whim, no effect (although my compass seems to always require calibration when it's launched now).
    This issue only started happening after upgrading to iOS8.  I did a reset/restore through iTunes rather than an OTA upgrade.
    UPDATE - power-cycling the phone seems to fix it temporarily.

  • IChat 4.0.7 Screen Sharing does not work.

    Me and my friend both have identical machines, the intel iMac 20" 2.66mhz
    Software is identical
    iChat version is identical (4.0.7 (616))
    Video Chat works perfectly, our internet connections are fantastic, no issues there.
    Both using Netgear routers with uPnP enabled.
    Internet Sharing is OFF
    Firewall is "set access for specific services and applications" and iChat and iChat Agent are added.
    I conclude that Screen Sharing *does NOT work* as advertised.
    Apple, I am most disappointed, get it sorted for next release please.
    Who else has witnessed this epic failure?
    Thanks,
    edit
    Also, what is this iChat AV nonsense? Where are the iChat 4 forums?
    Message was edited by: Wayne

    Thanks again Leo for your help,
    Yes I was refering to the screen sharing in system preferences/sharing.
    Checked the video menu:
    Screen sharing enabled
    Camera enabled
    microphone enabled
    so no that's not it! Was hoping it was something simple like that too.
    Both netgear routers dont have any ports forwarded, just upnp enabled.
    The frustrating thing is, both macs are new, one is only days old, and neither mac has had it's setting messed about with or anything.
    It would be great to find the solution, 100's of people having similar issues if you google it.
    *edit*
    Just a thought, would the type of account make a difference? At the moment we are both using the type of accounts that iChat creates when you select "get an iChat account" (creates a [email protected] login)
    Message was edited by: Wayno

  • My passcode is working to unlock the screen but does not work with restriction passcode. Should they be different?

    My passcode is working to unlock the screen but does not work with restriction passcode.
    Tried it several times but it did not work, though i can use the phone and all features even after 13 failed attempts.
    Should restriction passcode be different from what i set?

    There is no default restriction password. If you didn't set it someone else may have. If you can't find it then you may have to follow the steps here:
    Forgot passcode for your iPhone, iPad, or iPod touch, or ...
    Do you have a backup which might not have this restriction passcode? If so restore to that backup?

  • Photoshop: full screen mode shortcut not working

    photoshop: full screen mode shortcut not working, if i press shirt+alt+ctr key then i delete the file, what happen ?

    Could you elaborate?
    F is the default shorcut for »Change Screen Mode« for me, so I’m not sure what you want with the qualifier keys.
    Have you changed your Edit > Keyboard Shortcut?

  • Save Panel Image / Screen Image does not work as an Executable

    The Save Panel Image / Screen Image does not work as an Executable.  It looks like there is a conflict with the Path, since the Screen_Image.exe is launched as Screen_Image.vi.  I've tried this function both ways with the path name change Screen_Image.exe AND Screen_Image.vi.

    Any chance you might be able to post some code illustrating what you are talking about?
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I am facing a new problem after a missed call. i phone will get freez on its lock screen after a miss call. Its seems that its main screen touch is not working properly.  This problem occurs after each and every missed call.

    I'm using iphone 5s with ios 7.1.2  & I am facing a new problem after every missed call. i phone  gets freezed on its lock screen. It seems that its main screen touch is not working properly. It should be bug introduced by apple . This problem occurs after each and every missed call .There is no patch announcement for this issue yet. There are few workaround to fix this issue: Reboot your iphone. But its  irritating to reboot the phone frequently after each issue....

    Hello dipthebe,
    Check out the articles below go through troubleshooting steps for your iPhone when the screen is unresponsive. You may want to try and restore your iPhone as a new device and then test out what happens when you miss a call to see if the issue is still present afterwards.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/HT1414
    Regards,
    -Norm G.

  • Screen Saver does not work

    My screen saver only works when no one is logged on. Otherwise, the screen saver never kicks in. I have a Toshiba Satellite M305-S4848.

    Satellite M305-S4848 
    Do you use a wireless mouse?
    The screen saver does not work when you use a Microsoft wireless pointing device on a Windows Vista-...
    -Jerry

  • My iphones touch screen function is not working. I cannot do anything because it is passcode locked and i cant swipe to enter the code...pls help

    my iphone 5 touch screen function is not working. I cannot do anything right now even reset it because i cannot disable the Find my Iphone feature which is needed in resetting your iphone thru itunes. Please help. My phone is already out of warranty and i cannot just rely on techinicians here in our place since it is possible they might switch the original parts to something else...please help me thanks

    Log in to https://icloud.com/find using your Apple ID. Erase and then disconnect your phone from your account.  You can then restore it using iTunes.

  • After installing lion, my screen saver does not work

    I installed lion, now my screen saver does not work.  I have tried all the hot corners, nothing. Dashboard and mission control work fine but cannot start screen saver.
    Any thoughts on what might be wrong.

    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
    com.symantec.kext.internetSecurity (1.3.2f5)
    com.symantec.kext.pf (4.2.1f7)
    com.symantec.kext.ips (3.2f8)
    at.obdev.nke.LittleSnitch (2.4.0)
    com.symantec.kext.filesecurity (1.4.3f19)
    com.symantec.kext.fw (1.0.3f5)
    com.symantec.kext.SymAPComm (11.2.2f3)
    #2:
    Password:
    com.wdc.drivemanagerservice
    com.symantec.symSchedDaemon.plist
    com.symantec.symdaemon
    com.symantec.sharedsettings
    com.symantec.Sched501-3.plist
    com.symantec.Sched501-2.plist
    com.symantec.Sched501-1.plist
    com.symantec.navapdaemonsl
    com.symantec.navapd
    com.symantec.MissedTasks.plist
    com.symantec.diskMountNotify.plist
    com.symantec.deepsight-extractor
    com.symantec.avscandaemon
    com.microsoft.office.licensing.helper
    com.adobe.versioncueCS3
    at.obdev.littlesnitchd
    #3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
    com.symantec.uiagent.application
    com.epson.epw.agent
    at.obdev.LittleSnitchUIAgent
    at.obdev.LittleSnitchNetworkMonitor
    uk.co.markallan.clamxav.freshclam
    uk.co.markallan.clamxav.clamscan
    com.macpaw.CleanMyMac.helperTool
    com.google.keystone.user.agent
    com.adobe.ARM.ad895013aeb33ea6e968d9fdc06c0eb42c7c2a5229d98d64ad002716
    #4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta} * L*/Fonts 2> /dev/null
    /Library/Components:
    iGlasses.component
    /Library/Extensions:
    /Library/Frameworks:
    .dat1bf4.00c
    AECore.framework
    AEProfiling.framework
    AERegistration.framework
    AudioMixEngine.framework
    Compressor.framework
    DSPPublishing.framework
    EWSMac-GC.framework
    EWSMac.framework
    FxPlug.framework
    HPDeviceModel.framework
    HPPml.framework
    HPServicesInterface.framework
    HPSmartPrint.framework
    MediaServerAPI.framework
    Motion.framework
    NyxAudioAnalysis.framework
    PluginManager.framework
    PrintMeSSL.framework
    ProFX.framework
    ProMetadataSupport.framework
    Qmaster.framework
    TSLicense.framework
    XSKey.framework
    /Library/Input Methods:
    /Library/InputManagers:
    Ecamm
    /Library/Internet Plug-Ins:
    Flash Player.plugin
    Flip4Mac WMV Plugin.plugin
    Google Earth Web Plug-in.plugin
    JavaAppletPlugin.plugin
    NPSVG3.zip
    NPSVG3Carbon
    NPSVG3ReadMe.html
    Quartz Composer.webplugin
    QuickTime Plugin.plugin
    RealPlayer Plugin.plugin
    SharePointBrowserPlugin.plugin
    SharePointWebKitPlugin.webplugin
    Silverlight.plugin
    flashplayer.xpt
    iPhotoPhotocast.plugin
    nsIQTScriptablePlugin.xpt
    /Library/Keyboard Layouts:
    /Library/LaunchAgents:
    at.obdev.LittleSnitchNetworkMonitor.plist
    at.obdev.LittleSnitchUIAgent.plist
    com.epson.epw.agent.plist
    com.symantec.uiagent.application.plist
    /Library/LaunchDaemons:
    at.obdev.littlesnitchd.plist
    com.adobe.versioncueCS3.plist
    com.apple.aelwriter.plist
    com.apple.qmaster.qmasterd.plist
    com.apple.remotepairtool.plist
    com.microsoft.office.licensing.helper.plist
    com.symantec.MissedTasks.plist
    com.symantec.Sched501-1.plist
    com.symantec.Sched501-2.plist
    com.symantec.Sched501-3.plist
    com.symantec.avscandaemon.plist
    com.symantec.deepsight-extractor.plist
    com.symantec.diskMountNotify.plist
    com.symantec.navapd.plist
    com.symantec.navapdaemonsl.plist
    com.symantec.sharedsettings.plist
    com.symantec.symSchedDaemon.plist
    com.symantec.symdaemon.plist
    com.wdc.drivemanagerservice.plist
    /Library/PreferencePanes:
    Apple Qmaster.prefPane
    Flash Player.prefPane
    Flip4Mac WMV.prefPane
    SymantecQuickMenu.prefPane
    VersionCue.prefPane
    VersionCueCS3.prefPane
    /Library/PrivateFrameworks:
    SymAVScan.framework
    SymAppKitAdditions.framework
    SymBase.framework
    SymConfidential.framework
    SymDaemon.framework
    SymFirewall.framework
    SymIPS.framework
    SymIR.framework
    SymInternetSecurity.framework
    SymPersonalFirewall.framework
    SymScheduler.framework
    SymSharedSettings.framework
    SymSubmission.framework
    SymUIAgent.framework
    SymUIAgentUI.framework
    SymWebKitUtils.framework
    /Library/PrivilegedHelperTools:
    com.microsoft.office.licensing.helper
    /Library/QuickLook:
    GBQLGenerator.qlgenerator
    iWork.qlgenerator
    /Library/QuickTime:
    AppleAVCIntraCodec.component
    AppleHDVCodec.component
    AppleIntermediateCodec.component
    AppleMPEG2Codec.component
    AppleProResCodec.component
    DVCPROHDCodec.component
    DVCPROHDMuxer.component
    DVCPROHDVideoDigitizer.component
    DVCPROHDVideoOutput.component
    DVCPROHDVideoOutputClock.component
    DVCPROHDVideoOutputCodec.component
    DesktopVideoOut.component
    DivX 6 Decoder.component
    FCP Uncompressed 422.component
    FLV.component
    Flip4Mac WMV Advanced.component
    Flip4Mac WMV Export.component
    Flip4Mac WMV Import.component
    IMXCodec.component
    LiveType.component
    Motion.component
    iChatTheaterPreview.component
    /Library/ScriptingAdditions:
    Adobe Unit Types
    Adobe Unit Types.osax
    SymWebKitUtilsSL.osax
    /Library/Spotlight:
    GBSpotlightImporter.mdimporter
    Microsoft Entourage.mdimporter
    Microsoft Office.mdimporter
    iMovie.mdimporter
    iWeb.mdimporter
    iWork.mdimporter
    /Library/StartupItems:
    AdobeVersionCue
    /etc/mach_init.d:
    /etc/mach_init_per_login_session.d:
    /etc/mach_init_per_user.d:
    Library/Address Book Plug-Ins:
    SkypeABDialer.bundle
    SkypeABSMS.bundle
    Library/Fonts:
    ATBas
    ATBraIro
    ATBroScr
    ATChe
    ATIsa
    ATMcCol
    ATRap
    ATUnc
    Arial
    Basque, etc.
    Branding Iron, etc.
    Brush Script
    ClearGotBolDTC
    ClearGotExtBolDTC
    ClearGotLHBla
    ClearGotLHBol
    ClearGotLHLig
    ClearGotLHMed
    ClearGotLHRom
    ClearGotMTBol
    ClearGotMTDemBol
    ClearGotRegDTC
    ClearITCbyBTBla
    ClearITCbyBTBlaIta
    ClearITCbyBTBol
    ClearITCbyBTBolIta
    ClearITCbyBTCon
    ClearITCbyBTHea
    ClearITCbyBTHeaIta
    ClearITCbyBTReg
    ClearITCbyBTRegIta
    Clearface Bd BT
    Clearface Blk BT
    Clearface BlkIt BT
    Clearface Ctr BT
    Clearface Gothic A
    Clearface Rg:Hv BT
    Clearface.ttf
    ClearfaceGothic ExtraBold DTC
    ClearfaceGothic Regular DTC
    ClearfaceGothicLH Bold
    Clearface_Gothic_MT_Bd MT
    Clearface_Gothic_MT_Dm_Bd MT
    Clearly Gothic Light.ttf
    Clearly Gothic.ttf
    EmbasBTReg
    Embassy BT
    FIRESTARTER.TTF
    FLAMER.TTF
    Firecat.ttf
    Flame.ttf
    Flames.ttf
    Redd Or Dedd.ttf
    SEAWFA__.TTF
    Smokteq.ttf
    Times New Roman
    Verdana
    Wingdings
    Wingdings 2
    Wingdings 3
    chp-fire.ttf
    encodings.dir
    fonts.dir
    fonts.list
    fonts.scale
    scythe.ttf
    Library/Frameworks:
    EWSMac-GC.framework
    Library/Input Methods:
    .localized
    Library/Internet Plug-Ins:
    Move-Media-Player.plugin
    WebEx64.plugin
    Library/Keyboard Layouts:
    Library/LaunchAgents:
    com.adobe.ARM.ad895013aeb33ea6e968d9fdc06c0eb42c7c2a5229d98d64ad002716.plist
    com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.B6A794DC-82A7-47AB-9171-208 B8AEB5B61.plist
    com.apple.SafariBookmarksSyncer.plist
    com.google.keystone.agent.plist
    com.macpaw.CleanMyMac.helperTool.plist
    com.zeobit.MacKeeper.Helper
    uk.co.markallan.clamxav.clamscan.plist
    uk.co.markallan.clamxav.freshclam.plist
    Library/PreferencePanes:
    MouseLocator.prefPane
    #5
    osascript -e 'tell application "System Events" to get name of every login item'
    2012-03-17 18:58:32.172 osascript[669:8703] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types:  dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found.  Did find:
              /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
    osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
    I hope I copied these correctly.

  • Screen dims slightly while I'm working.

    I just got my new MacBook Pro yesterday. So I'm surprised that it seems to be malfunctioning already. Specifically, while I'm working the screen will dim slightly even though I am typing or working. Thoughts?

    This is because of the ambient light sensors, which are, as the poster above mentions, located under the speaker grills. If you don't wish to turn off this feature, just don't hold your hands over the speaker grills making a shadow. (I am a two-finger typist, so I tend to shadow the left sensor often.) Once I realized what I was doing, it doesn't bother me so much. It's more pronounced at low brightness settings.
    Hope this answers your question.

  • [SOLVED] Suspend to ram / disk not working in newer kernels

    Hi all,
    this puzzles me for a while:
    My desktop system was able to suspend to ram / disk flawlessly in older kernels. It stopped working with 3.3. The suspend seems to work, the machine goes to standby. But when I try to resume, the machines is on but the screen stays black. Neither the console is working nor can I ssh into it. Only hard reset gets me out here
    I did investigate and found many tips and hints which all led to nowhere. I even changed my filesystem back from btrfs to ext4 and my VGA module from proprietary nvidia to nouveau.
    When this all failed I got to the idea to burn several install disks. One of the official 2011.08.19 (kernel 3.0.3) and one of the snapshots 2012.06.05_04-00-01 (kernel 3.3.7) and 2012.07.17_04-00-01 (kernel 3.4.4). I guess these can not be compromised by some hosed installation. I started one by one and issued the follwing command:
    echo mem > /sys/power/state
    which suspends the machine successfully in all three cases. With 2011.08.19 the resume is working but the other two fail. Some more info about the hardware:
    1. lspci output
    harvey@obelix ~ $ lspci
    00:00.0 Host bridge: Intel Corporation Core Processor DMI (rev 11)
    00:03.0 PCI bridge: Intel Corporation Core Processor PCI Express Root Port 1 (rev 11)
    00:05.0 PCI bridge: Intel Corporation Core Processor PCI Express Root Port 3 (rev 11)
    00:08.0 System peripheral: Intel Corporation Core Processor System Management Registers (rev 11)
    00:08.1 System peripheral: Intel Corporation Core Processor Semaphore and Scratchpad Registers (rev 11)
    00:08.2 System peripheral: Intel Corporation Core Processor System Control and Status Registers (rev 11)
    00:08.3 System peripheral: Intel Corporation Core Processor Miscellaneous Registers (rev 11)
    00:10.0 System peripheral: Intel Corporation Core Processor QPI Link (rev 11)
    00:10.1 System peripheral: Intel Corporation Core Processor QPI Routing and Protocol Registers (rev 11)
    00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
    00:1a.1 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
    00:1a.2 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
    00:1a.7 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
    00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
    00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
    00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
    00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
    00:1d.1 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
    00:1d.2 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
    00:1d.3 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
    00:1d.7 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
    00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06)
    00:1f.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA IDE Controller (rev 06)
    00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
    00:1f.5 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 2 port SATA IDE Controller (rev 06)
    01:00.0 VGA compatible controller: NVIDIA Corporation G84 [GeForce 8600 GT] (rev a1)
    02:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
    03:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
    03:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
    04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
    3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-Core Registers (rev 04)
    3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 04)
    3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 04)
    3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 04)
    3f:03.0 Host bridge: Intel Corporation Core Processor Integrated Memory Controller (rev 04)
    3f:03.1 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Target Address Decoder (rev 04)
    3f:03.4 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Test Registers (rev 04)
    3f:04.0 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Control Registers (rev 04)
    3f:04.1 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Address Registers (rev 04)
    3f:04.2 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Rank Registers (rev 04)
    3f:04.3 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Thermal Control Registers (rev 04)
    3f:05.0 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Control Registers (rev 04)
    3f:05.1 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Address Registers (rev 04)
    3f:05.2 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Rank Registers (rev 04)
    3f:05.3 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Thermal Control Registers (rev 04)
    2. lsmod output of 2012.07.17_04-00-01:
    harvey@obelix ~ $ lsmod
    Module Size Used by
    fuse 68768 0
    tun 15297 0
    rfcomm 33627 8
    bnep 8793 2
    nfsd 246714 2
    exportfs 3665 1 nfsd
    btusb 11764 0
    joydev 9991 0
    bluetooth 190551 22 bnep,btusb,rfcomm
    rfkill 15604 2 bluetooth
    snd_hda_codec_realtek 60409 1
    snd_hda_intel 24053 3
    snd_hda_codec 94305 2 snd_hda_codec_realtek,snd_hda_intel
    microcode 12185 0
    i7core_edac 17477 0
    snd_hwdep 6300 1 snd_hda_codec
    i2c_i801 8180 0
    iTCO_wdt 12813 0
    snd_pcm 74958 2 snd_hda_codec,snd_hda_intel
    r8169 49386 0
    coretemp 5654 0
    edac_core 36656 3 i7core_edac
    iTCO_vendor_support 1929 1 iTCO_wdt
    serio_raw 4653 0
    pcspkr 1899 0
    snd_page_alloc 7185 2 snd_pcm,snd_hda_intel
    snd_timer 18966 1 snd_pcm
    mii 4123 1 r8169
    snd 58997 12 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
    soundcore 5410 1 snd
    acpi_cpufreq 5933 0
    mperf 1235 1 acpi_cpufreq
    evdev 9754 4
    processor 26567 1 acpi_cpufreq
    vboxnetadp 18387 0
    vboxnetflt 16743 0
    vboxdrv 1791382 2 vboxnetadp,vboxnetflt
    nfs 276056 1
    nfs_acl 2359 2 nfs,nfsd
    lockd 62987 2 nfs,nfsd
    auth_rpcgss 32327 2 nfs,nfsd
    sunrpc 184998 12 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
    fscache 41059 1 nfs
    aes_x86_64 7508 64
    cryptd 8741 0
    aes_generic 26138 1 aes_x86_64
    xts 3101 32
    gf128mul 6050 1 xts
    dm_crypt 16496 4
    dm_mod 70918 9 dm_crypt
    sr_mod 14823 0
    cdrom 35648 1 sr_mod
    hid_logitech 16560 0
    ff_memless 4690 1 hid_logitech
    usbhid 36430 1 hid_logitech
    hid 85285 2 hid_logitech,usbhid
    sd_mod 29239 7
    pata_jmicron 2480 0
    usb_storage 44760 0
    pata_acpi 3408 0
    ata_piix 23160 5
    crc32c_intel 1987 0
    ahci 20549 0
    libahci 20023 1 ahci
    ata_generic 3295 0
    libata 167611 6 ahci,pata_acpi,libahci,ata_generic,ata_piix,pata_jmicron
    scsi_mod 132974 4 usb_storage,libata,sd_mod,sr_mod
    uhci_hcd 23372 0
    xhci_hcd 81440 0
    ehci_hcd 40994 0
    usbcore 147533 8 btusb,uhci_hcd,usb_storage,ehci_hcd,usbhid,xhci_hcd
    usb_common 954 1 usbcore
    floppy 58615 0
    nouveau 784289 3
    button 4502 1 nouveau
    video 11307 1 nouveau
    mxm_wmi 1425 1 nouveau
    wmi 8475 2 mxm_wmi,nouveau
    i2c_algo_bit 5391 1 nouveau
    drm_kms_helper 33051 1 nouveau
    ttm 64288 1 nouveau
    drm 208926 5 ttm,drm_kms_helper,nouveau
    i2c_core 20369 5 drm,i2c_i801,drm_kms_helper,i2c_algo_bit,nouveau
    ext4 424175 4
    crc16 1359 2 ext4,bluetooth
    jbd2 73919 1 ext4
    mbcache 5977 1 ext4
    3. /var/log/pm-suspend.log of a not working suspend
    Initial commandline parameters:
    Tue Jul 17 11:21:18 CEST 2012: Running hooks for suspend.
    Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
    Linux obelix 3.4.5-1-ARCH #1 SMP PREEMPT Mon Jul 16 21:35:54 CEST 2012 x86_64 GNU/Linux
    Module Size Used by
    rfcomm 33627 8
    bnep 8793 2
    nfsd 246714 2
    exportfs 3665 1 nfsd
    ext4 424175 3
    jbd2 73919 1 ext4
    mbcache 5977 1 ext4
    btusb 11764 0
    bluetooth 190551 22 bnep,btusb,rfcomm
    crc16 1359 2 ext4,bluetooth
    joydev 9991 0
    rfkill 15604 2 bluetooth
    snd_hda_codec_realtek 60409 1
    microcode 12185 0
    coretemp 5654 0
    serio_raw 4653 0
    snd_hda_intel 24053 5
    snd_hda_codec 94305 2 snd_hda_codec_realtek,snd_hda_intel
    pcspkr 1899 0
    snd_hwdep 6300 1 snd_hda_codec
    snd_pcm 74958 3 snd_hda_codec,snd_hda_intel
    snd_page_alloc 7217 2 snd_pcm,snd_hda_intel
    r8169 49386 0
    i7core_edac 17477 0
    snd_timer 18966 1 snd_pcm
    edac_core 36656 3 i7core_edac
    mii 4123 1 r8169
    snd 58997 15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
    iTCO_wdt 12813 0
    i2c_i801 8180 0
    soundcore 5410 1 snd
    iTCO_vendor_support 1929 1 iTCO_wdt
    acpi_cpufreq 5933 0
    mperf 1267 1 acpi_cpufreq
    evdev 9754 4
    processor 26567 1 acpi_cpufreq
    vboxnetadp 18387 0
    vboxnetflt 16743 0
    vboxdrv 1791382 2 vboxnetadp,vboxnetflt
    nfs 276056 1
    nfs_acl 2359 2 nfs,nfsd
    lockd 62987 2 nfs,nfsd
    auth_rpcgss 32327 2 nfs,nfsd
    sunrpc 184998 12 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
    fscache 41059 1 nfs
    btrfs 710578 1
    libcrc32c 1002 1 btrfs
    zlib_deflate 20436 1 btrfs
    aes_x86_64 7508 64
    cryptd 8741 0
    aes_generic 26138 1 aes_x86_64
    xts 3101 32
    gf128mul 6050 1 xts
    hid_logitech 16560 0
    ff_memless 4690 1 hid_logitech
    dm_crypt 16496 4
    dm_mod 70918 9 dm_crypt
    sr_mod 14823 0
    cdrom 35648 1 sr_mod
    usbhid 36430 1 hid_logitech
    usb_storage 44760 0
    hid 85285 2 hid_logitech,usbhid
    sd_mod 29239 7
    pata_jmicron 2480 0
    pata_acpi 3408 0
    ata_piix 23160 5
    ata_generic 3295 0
    uhci_hcd 23404 0
    crc32c_intel 1987 1
    ahci 20549 0
    libahci 20023 1 ahci
    libata 167611 6 ahci,pata_acpi,libahci,ata_generic,ata_piix,pata_jmicron
    xhci_hcd 81472 0
    ehci_hcd 41026 0
    scsi_mod 132974 4 usb_storage,libata,sd_mod,sr_mod
    usbcore 147565 8 btusb,uhci_hcd,usb_storage,ehci_hcd,usbhid,xhci_hcd
    usb_common 954 1 usbcore
    floppy 58615 0
    nouveau 784321 3
    button 4502 1 nouveau
    video 11307 1 nouveau
    mxm_wmi 1425 1 nouveau
    wmi 8475 2 mxm_wmi,nouveau
    i2c_algo_bit 5391 1 nouveau
    drm_kms_helper 33051 1 nouveau
    ttm 64320 1 nouveau
    drm 208958 5 ttm,drm_kms_helper,nouveau
    i2c_core 20369 5 drm,i2c_i801,drm_kms_helper,i2c_algo_bit,nouveau
    total used free shared buffers cached
    Mem: 8173500 884060 7289440 0 3764 405872
    -/+ buffers/cache: 474424 7699076
    Swap: 8386556 0 8386556
    /usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:
    /usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/01grub suspend suspend:
    /usr/lib/pm-utils/sleep.d/01grub suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:
    /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:
    /usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
    Running hook /etc/pm/sleep.d/90alsa suspend suspend:
    /etc/pm/sleep.d/90alsa suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:
    /usr/lib/pm-utils/sleep.d/90clock suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:
    /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:
    /usr/lib/pm-utils/sleep.d/95led suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
    Kernel modesetting video driver detected, not using quirks.
    /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
    kernel.acpi_video_flags = 0
    /usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
    Tue Jul 17 11:21:18 CEST 2012: performing suspend
    This seems to be a kernel bug. Any input?
    Harvey
    Last edited by Harey (2012-08-06 13:51:49)

    Another life-sign. The issue is still unsolved but I've come a little further. It seems to be a combination of more failures. The first one is USB hardware. I have a usb keyboard-mouse combo from Logitech (comfort cordless desktop). The USB bus does not wake up correctly when resuming from suspend. So my keyboard is unsuable. I put in a file /etc/pm/sleep.d/20_custom-ehci_hcd with the following content:
    BUSES="0000:00:1a.7 0000:00:1d.7"
    case "${1}" in
    hibernate|suspend)
    # Switch USB buses off
    for bus in $BUSES; do
    echo -n $bus | tee /sys/bus/pci/drivers/ehci_hcd/unbind
    done
    resume|thaw)
    # Switch USB buses back on
    for bus in $BUSES; do
    echo -n $bus | tee /sys/bus/pci/drivers/ehci_hcd/bind
    done
    esac
    The bus IDs were taken from /sys/bus/pci/drivers/ehci_hcd
    When I start pm-suspend from a console (no X started) this seems to reanimate my keyboard while the screen stays black (with backlight on). I can type and reboot. Also I can ssh into the machine from my laptop.
    Concerning the blank screen there seems to be a bug in both the proprietary nvidia modules as well as the nouveau driver. The nvidia folks have issued a new beta driver which seems to at least minimize the failures. This all concerns the nv50-family of nvidias cards. I have a GF8600GT which is one of these
    I'll wait for this driver and then restart my testing. Until then - no suspend/hibernate
    EDIT: Today's nvidia 304.32 is solving my issues - I can sleep again
    Harvey
    Last edited by Harey (2012-08-06 13:52:51)

Maybe you are looking for