Help with Energy Saving

Hello,

I have a Asus K53T laptop. My system setup is Windows 7 dual booted with OpenSuse 13.1 x64.
I noticed that windows consumes significantly less energy compared to OpenSuse, which is a bit surprising considering that windows loads a lot of **** aware plus an antivirus, things that are not running on OpenSuse.
I am looking for advice on how to configure OpenSuse power options, so my battery lasts as long as it does on windows.

Hi! There are a few good ways to save power. The largest boost I noticed is to install laptop-mode-tools. I am going to use some links to the arch-wiki to help you find more info, but aside from references to their package manager it should mainly work exactly the same on openSUSE.
https://wiki.archlinux.org/index.php/Power_saving
https://wiki.archlinux.org/index.php/Laptop_Mode_Tools

You can use powertop to see how much energy you are using.

I also recommend adding this line to /etc/sysctl.conf it should help to keep writes in bursts.

vm.dirty_writeback_centisecs = 1500

Thanks for the suggestions :wink:
I am reading trough Laptop Mode features. Is it mostly done automatically or do I actually need to configure something?
I made sure that I have hdparm and cpupower installed.
Also trying to interpret the results provided by powertop. I am getting around 450wakeup/s with the PC idle, but I don’t really have anything to compare this to. I noticed that the CPU usage displayed by powertop is usually higher than the one displayed by System Monitor, but have no idea what conclusions to take out of this!

On 2014-02-08 15:56, drkdfndr wrote:
>
> Hello,
>
> I have a Asus K53T laptop. My system setup is Windows 7 dual booted with
> OpenSuse 13.1 x64.

Does it have an hybrid video setup, like Nvidia plus Intel graphics?
Without the proper drivers, the Nvidia card will be powered even if not
used.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Hi,
Yes, I have a dual graphics set up in my laptop. I have the AMD APU A6 CPU (integrated graphics) plus the AMD HD7670 dedicated card.
I am already using the AMD proprietary drivers :slight_smile:

On 2014-02-10 16:06, drkdfndr wrote:
>
> Hi,
> Yes, I have a dual graphics set up in my laptop. I have the AMD APU A6
> CPU (integrated graphics) plus the AMD HD7670 dedicated card.
> I am already using the AMD proprietary drivers :slight_smile:

Well, using the integrated graphics on the CPU uses much less power. How
to disable the dedicated card, I do not know. I guess that the idea is
to use the integrated g. on battery, and the card while on mains.
Possibly Windows side handles this automatically and correctly.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

bingo…
it seems that hybrid graphic is still a nightmare on linux.
take a look on this man, maybe this will give you a clue:

https://help.ubuntu.com/community/BinaryDriverHowto/AMD

read the chapter 3.2…

Hi,
I have followed all the suggestions, and my battery has been lasting a substantially higher amount of time.

But I am having a problem that I believe is caused by laptop mode tools. Every time I use a USB mouse it gets switched off after a few seconds, and wakes-up if a press one of the mouse buttons, but not by moving it…
For what I have read, I need to blacklist my USB mouse on “usb-autosuspend.conf”.
On that file I see the following entries.

AUTOSUSPEND_USBTYPE_BLACKLIST=""
AUTOSUSPEND_USBID_BLACKLIST=""

I think it would be best to use USBTYPE so I could blacklist all mouses (if that’s possible?), I am just not sure on what should go there, to accomplish that.

Still not sure what parameters to use :
(bump)

On 2014-03-11 16:56, drkdfndr wrote:
>
> Still not sure what parameters to use :
> (bump)

I have an idea about this, but I need having a good look at my laptop,
and then write it here. But I always forget when it is powered up. Sorry.
I need to do some errands… perhaps when I come back.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

That would be awesome :wink:

On 2014-03-12 02:06, drkdfndr wrote:
>
> robin_listas;2630000 Wrote:
>> On 2014-03-11 16:56, drkdfndr wrote:
>>>
>>> Still not sure what parameters to use :
>>> (bump)
>>
>> I have an idea about this, but I need having a good look at my laptop,
>> and then write it here. But I always forget when it is powered up.
>> Sorry.
>> I need to do some errands… perhaps when I come back.

> That would be awesome :wink:

I’ve been busy… highly technical tasks such as cutting iron bars to
size or pruning greenery on a garden :slight_smile:

Yes, I was going to suggest looking at
“/etc/laptop-mode/conf.d/usb-autosuspend.conf”.

You could try this section:


# The list of USB driver types that should not use autosuspend.  The driver
# type is given by "DRIVER=..." in a USB device's uevent file.
# Example: AUTOSUSPEND_USBTYPE_BLACKLIST="usbhid usb-storage"
AUTOSUSPEND_USBTYPE_BLACKLIST=""

(errata corrected above)

If you run “lsmod | grep usb” you can find out which are in use.

The other one:


# The list of USB IDs that should not use autosuspend. Use lsusb to find
out the
# IDs of your USB devices.
# Example: AUTOSUSPEND_USBID_BLACKLIST="046d:c025 0123:abcd"
AUTOSUSPEND_USBID_BLACKLIST=""

As the comment say, using “lsusb” should list the IDs. It gives an
output like this:


minas-tirith:/etc/laptop-mode # lsusb
Bus 002 Device 002: ID 0408:0f41 Quanta Computer, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
minas-tirith:/etc/laptop-mode #

But as you see, we can not see which one is the mouse. Let’s try with
“verbose”. …] Nope, I can not identify my touchpad.

From /var/log/Xorg.0.log, I know this:


>    101.700] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
>    101.700] (**) SynPS/2 Synaptics TouchPad: always reports core events
>    101.712] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input1/event1"
>    101.712] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 12)
>    101.712] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
>    101.712] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MaxSpeed is now 1.75
>    101.712] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) AccelFactor is now 0.040
>    101.712] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
>    101.712] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
>    101.712] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
>    101.712] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
>    101.712] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
>    101.712] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
>    101.713] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"

I think mine is not connected via usb at all. It is connected via
something they called “i8042 AUX port”. :-?

(I see an item “/sys/devices/platform/i8042/power/autosuspend_delay_ms”
which could be interesting to manipulate)

I have a note from a thread dated 2012-09-11, on which they use:

AUTOSUSPEND_USBTYPE_BLACKLIST=“usbhid”

This should help you, I think; your mouse is external. But of course,
the entire usb bus will remain powered up.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Hi,
I am not being very successfully in getting the USB driver type. My external usb doesn’t seem to show up at all, when I run “lsmod | grep usb”

$ lsmod | grep usb
usb_storage            62062  1 ums_realtek

That’s my MMC/SD/MS card reader.
Also tried “lsmod | grep mouse” but it doesn’t return anything.
dmesg gives me this:

$ dmesg |grep -i mouse
    1.123671] mousedev: PS/2 mouse device common for all mice
    2.208031] psmouse serio1: elantech: assuming hardware version 3 (with firmware version 0x550f00)
    2.233318] psmouse serio1: elantech: Synaptics capabilities query result 0x78, 0x17, 0x0b.
    3.007216] usb 4-1: Product: USB Optical Mouse
    3.014429] input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:12.0/usb4/4-1/4-1:1.0/input/input2
    3.015086] hid-generic 0003:093A:2510.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:00:12.0-1/input0

I can see the device’s ID but I don’t known what the driver type would be!

Bus 004 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x093a Pixart Imaging, Inc.
  idProduct          0x2510 Optical Mouse
  bcdDevice            1.00
  iManufacturer           1 PixArt
  iProduct                2 USB Optical Mouse
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      52
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)


On 2014-03-15 15:56, drkdfndr wrote:

> I can see the device’s ID but I don’t known what the driver type would
> be!

Well… we can use the ID:


AUTOSUSPEND_USBID_BLACKLIST="093a:2510"

Try and find out if that works :slight_smile:

(the driver I think is “hid-generic”)


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Using the ID works :wink:
I will try using that driver, and see what happens.

On 2014-03-16 17:26, drkdfndr wrote:
>
> Using the ID works :wink:
> I will try using that driver, and see what happens.

No, don’t (IMO). The ID is more precise, as it only affects that device.
If you happen to plug in another device that uses the same driver, it
will not be affected.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)