Автор Тема: оптимизация энергопортебления ноутбука (powertop)  (Прочитано 8102 раз)

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Заглянул я в виртуалке на mate, в Центр управления управление питанием, там нет опции когда выключать (как в KDE).

dango

  • Гость
Заглянул я в виртуалке на mate, в Центр управления управление питанием, там нет опции когда выключать (как в KDE).
Засада...
Беглый поиск не помог. Хм, неужели у Mate так бедно?
Но вот есть вариант, правда, относящийся к GNOME3:
https://wiki.archlinux.org/index.php/GNOME_%28%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9%29#.D0.A3.D0.BF.D1.80.D0.B0.D0.B2.D0.BB.D0.B5.D0.BD.D0.B8.D0.B5_.D0.BF.D0.B8.D1.82.D0.B0.D0.BD.D0.B8.D0.B5.D0.BC
Upd. Ключевое слово dconf-editor. Он в Mate есть?
« Последнее редактирование: 24.02.2015 09:43:29 от dango »

Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 566
зашел в dconf-editor
там есть вот такое - org/mate/power-manager/percentage-critical
установлено "3" и percentage-action установлено "2".
Я так понимаю при 3% он должен был уснуть...
Но он у  меня "по данным power-manager-а успел поработать минут несколько при 0-м уровне батареи (т.е. power-manager показывал что осталось 0% заряда)
а в какие-нибудь логи это должно писаться?

dango

  • Гость
там есть вот такое - org/mate/power-manager/percentage-critical
установлено "3" и percentage-action установлено "2".
Я так понимаю при 3% он должен был уснуть...
По идее, да.
Но он у  меня "по данным power-manager-а успел поработать минут несколько при 0-м уровне батареи (т.е. power-manager показывал что осталось 0% заряда)
А вот это возможно, но на практике чаще обратное. Это потому что оценка заряда батареи всегда приблизительная.
а в какие-нибудь логи это должно писаться?
dmesg

Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 566
c этим может быть как-то связано (нашел в dmesg)?
[    8.115468] fujitsu_laptop: ACPI: Fujitsu FUJ02B1 [FJEX] (on)
[    8.115749] input: Fujitsu FUJ02E3 as /devices/LNXSYSTM:00/device:00/FUJ02E3:00/input/input16
[    8.115789] fujitsu_laptop: ACPI: Fujitsu FUJ02E3 [FEXT] (on)
[    8.116222] fujitsu_laptop: BTNI: [0x10f0101]
[    8.116315] fujitsu_laptop: driver 0.6.0 successfully loaded
[    8.128256] ACPI: Battery Slot [CMB1] (battery present)
[    8.146596] i801_smbus 0000:00:1f.3: SMBus using PCI Interrupt
[    8.184035] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042f conflicts with OpRegion 0x0000000000000400-0x000000000000047f (\_SB_.PCI0.LPCB.PMIO) (20131218/utaddress-258)
[    8.184042] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    8.184046] ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053f conflicts with OpRegion 0x0000000000000500-0x000000000000054b (\_SB_.PCI0.LPCB.OGIO) (20131218/utaddress-258)
[    8.184050] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    8.184051] ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052f conflicts with OpRegion 0x0000000000000500-0x000000000000054b (\_SB_.PCI0.LPCB.OGIO) (20131218/utaddress-258)
[    8.184055] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    8.184056] lpc_ich: Resource conflict(s) found affecting gpio_ich

dango

  • Гость
8.184035] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042f conflicts with OpRegion 0x0000000000000400-0x000000000000047f (\_SB_.PCI0.LPCB.PMIO) (20131218/utaddress-258)
[    8.184042] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver

У меня такое тоже есть. Почитайте вот это
http://forum.altlinux.org/index.php/topic,33653.msg241632.html#msg241632
За разбор полетов Speccyfighter`у респект и уважение.
Посоветую не проходить мимо его сообщений, всегда можно почерпнуть немало полезного.

Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 566
У меня тоже std-def и тоже не видны сенсоры.
Получается стоит попробовать led-ws?
я правильно понимаю что переключаться надо так:
update-kernel -t led-ws ?




Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
У меня тоже std-def и тоже не видны сенсоры.
# sensors-detect
# chkconfig lm_sensors on

Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 566
Ничего не изменилось
также No sensors found!
после sensors-detect

[root@fujik ~]# sensors-detect
# sensors-detect revision 6031 (2012-03-07 17:14:01 +0100)
# System: FUJITSU LIFEBOOK P702 [10601582025] (laptop)
# Board: FUJITSU FJNB25A

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no):
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 15h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no):
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no):
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no):
Using driver `i2c-i801' for device 0000:00:1f.3: Intel Panther Point (PCH)
Module i2c-dev loaded successfully.

Next adapter: i915 gmbus ssc (i2c-0)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 gmbus vga (i2c-1)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 gmbus panel (i2c-2)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x28
Probing for `National Semiconductor LM78'...                No
Probing for `National Semiconductor LM79'...                No
Probing for `National Semiconductor LM80'...                No
Probing for `National Semiconductor LM96080'...             No
Probing for `Winbond W83781D'...                            No
Probing for `Winbond W83782D'...                            No
Probing for `Winbond W83627HF'...                           No
Probing for `Winbond W83627EHF'...                          No
Probing for `Winbond W83627DHG/W83667HG/W83677HG'...        No
Probing for `Asus AS99127F (rev.1)'...                      No
Probing for `Asus AS99127F (rev.2)'...                      No
Probing for `Asus ASB100 Bach'...                           No
Probing for `Analog Devices ADM1029'...                     No
Probing for `ITE IT8712F'...                                No
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 No
Probing for `EDID EEPROM'...                                Yes
    (confidence 8, not a hardware monitoring chip)

Next adapter: i915 gmbus dpc (i2c-3)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 gmbus dpb (i2c-4)
Do you want to scan it? (YES/no/selectively):

Next adapter: i915 gmbus dpd (i2c-5)
Do you want to scan it? (YES/no/selectively):

Next adapter: DPDDC-B (i2c-6)
Do you want to scan it? (YES/no/selectively):

Next adapter: DPDDC-C (i2c-7)
Do you want to scan it? (YES/no/selectively):

Next adapter: SMBus I801 adapter at efa0 (i2c-8)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'...                                No
Client found at address 0x52
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):
Copy prog/init/lm_sensors.service to /lib/systemd/system
and run 'systemctl enable lm_sensors.service'
for initialization at boot time.
Unloading i2c-dev... OK
Unloading cpuid... OK

[root@fujik ~]# chkconfig lm_sensors on
[root@fujik ~]# sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
[root@fujik ~]#

dango

  • Гость
Ничего не изменилось
также No sensors found!
после sensors-detect
А так
acpi -t

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Ничего не изменилось
также No sensors found!
после sensors-detect
Так надо перезагрузиться с новыми модулями ядра.

Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 566
Перезагрузился. Сенсоры появились:
[root@fujik ~]# sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +56.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:         +55.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:         +46.0°C  (high = +87.0°C, crit = +105.0°C)

[root@fujik ~]# mc

[root@fujik log]# acpi -t
[root@fujik log]#
warning-и ACPI остались..
[    8.621993] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042f conflicts with OpRegion 0x000000
0000000400-0x000000000000047f (\_SB_.PCI0.LPCB.PMIO) (20131218/utaddress-258)
[    8.622000] ACPI: If an ACPI driver is available for this device, you should use it instead of the native drive
r
[    8.622006] ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053f conflicts with OpRegion 0x000000
0000000500-0x000000000000054b (\_SB_.PCI0.LPCB.OGIO) (20131218/utaddress-258)
[    8.622009] ACPI: If an ACPI driver is available for this device, you should use it instead of the native drive
r
[    8.622011] ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052f conflicts with OpRegion 0x000000
0000000500-0x000000000000054b (\_SB_.PCI0.LPCB.OGIO) (20131218/utaddress-258)
[    8.622014] ACPI: If an ACPI driver is available for this device, you should use it instead of the native drive
r
[    8.622015] lpc_ich: Resource conflict(s) found affecting gpio_ich

А чем грозит попытка поставить ядро .led-ws?
по ссылке написано про warnings такие же как у меня, и что на led-ws они не проявляются:
Цитировать
но эта проблема де-факто отсутствует в ядре led-ws


Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
А чем грозит попытка поставить ядро .led-ws?
Ничем, кроме того, что это более старая версия ядра (3.4.96), когда std-def - 3.14.26, а un-def - 3.18.7

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
У меня тоже std-def и тоже не видны сенсоры.
Получается стоит попробовать led-ws?
я правильно понимаю что переключаться надо так:
update-kernel -t led-ws ?

Это команда установки ядра led-ws. После установки ядра, оно дефолтной опцией пропишется в grub. Остальные ядра в Дополнительных параметрах.
Но при переезде std-def<->led-ws вы должны перед переездом осознать существенное различие между этими ядрами:
http://forum.altlinux.org/index.php/topic,9024.msg226958.html#msg226958
http://forum.altlinux.org/index.php/topic,29996.msg225493.html#msg225493

И есть ещё одна неупомянутая деталь:
С std-def и драйвером i915 у меня любимая гама запускается и разрешение экрана меняется, но нет сенсоров.
С led-ws всё прямо до наоборот:
- ошибка сегментации, масштабирование рабочего стола (но не смена разрешения), при работающем драйвере acpitz-virtual-0 на led-ws.


Оффлайн ASte

  • Мастер
  • ***
  • Сообщений: 1 566
Почитал. Подумал. Понял что с моим небольшим линукс-опытом при смене ядер я могу положить систему так что сам уже не подниму без переустановки.
Решил эксперименты со сменой ядер пока отложить.