Note that doing the lid-close event upon pulling the power plug is expected and valid behavior. The real issue is that upower thinks your lid is closed when it's open (even before pulling the plug).
Note that doing the lid-close event upon pulling the power plug is expected and valid behavior. The real issue is that upower thinks your lid is closed when it's open (even before pulling the plug).