Re: Help to configure automatic fan speed and cpu frequency on ThinkPad X260

2021-04-25 Thread Joel Carnat

Thanks.

I have tried unloading bunch of modules to identify when power 
management is disabled. And it happens exactly when loading when I issue 
"kldload i915".


Apr 25 02:05:34 ThinkPad-X260 kernel: [drm] Initialized
Apr 25 02:05:35 ThinkPad-X260 kernel: [drm] pdev:  vendor=0x8086 
device=0x1916 rev=0x07
Apr 25 02:05:35 ThinkPad-X260 kernel: [drm]   svendor=0x17aa 
sdevice=0x504a irq=18
Apr 25 02:05:35 ThinkPad-X260 kernel: WARN_ON(domain->wake_count == 
0)<4>WARN_ON(domain->wake_count == 0)<4>WARN_ON(domain->wake_count == 
0)<6>[drm] Memory usable by graphics device = 4096M
Apr 25 02:05:35 ThinkPad-X260 kernel: [drm] Supports vblank timestamp 
caching Rev 2 (21.10.2013).
Apr 25 02:05:35 ThinkPad-X260 kernel: [drm] Driver supports precise 
vblank timestamp query.

Apr 25 02:05:35 ThinkPad-X260 kernel: tunable drm.video.eDP-1 is not set
Apr 25 02:05:35 ThinkPad-X260 kernel: i915/skl_dmc_ver1_26.bin: could 
not load firmware image, error 2
Apr 25 02:05:35 ThinkPad-X260 kernel: error: 
[drm:pid-1:csr_load_work_fn] *ERROR* Failed to load DMC firmware 
[https://01.org/linuxgraphics/intel-linux-graphics-firmwares], disabling 
runtime power management.

Apr 25 02:05:35 ThinkPad-X260 kernel: tunable drm.video.DP-1 is not set
Apr 25 02:05:35 ThinkPad-X260 kernel: tunable drm.video.HDMI-A-1 is not set
Apr 25 02:05:35 ThinkPad-X260 kernel: tunable drm.video.DP-2 is not set
Apr 25 02:05:35 ThinkPad-X260 kernel: tunable drm.video.HDMI-A-2 is not set
Apr 25 02:05:35 ThinkPad-X260 kernel: drm0: taking over the fictitious 
range 0xc000-0xe000

Apr 25 02:05:35 ThinkPad-X260 kernel: [drm] GuC firmware load skipped
Apr 25 02:05:35 ThinkPad-X260 kernel: kms console: xpixels 1920 ypixels 1080

I can't use modesetting without i915.ko ; because /dev/dri/card0 is 
created by that particular module. So using acceleration glamor or none 
can't be done without first loading i915. Or maybe I missed something?


I have also installed devfw-i915. And the firmware file is available at
/usr/local/share/fw-i915/i915/skl_dmc_ver1_26.bin
I've read the files from DPorts/sysutils/devfw-i915/ and even rerun the 
regen-firmware.sh as described in pkg-install.fw.


Maybe that binary file should be copied somewhere else on the 
filesystem? But I have no clue where.


Thanks,
Joel

On 25/04/2021 22:53, Matthew Dillon wrote:
If it is GPU related we just might not have a working solution to the 
power management.  You could try adjusting the Xorg configuration to use 
the "modesetting" driver with acceleration disabled but it's a 
long-shot.  It kinda feels like the GPU is defaulting to a consumption 
mode that is forcing the fans to run.


-Matt



Re: Help to configure automatic fan speed and cpu frequency on ThinkPad X260

2021-04-25 Thread Matthew Dillon
If it is GPU related we just might not have a working solution to the power
management.  You could try adjusting the Xorg configuration to use the
"modesetting" driver with acceleration disabled but it's a long-shot.  It
kinda feels like the GPU is defaulting to a consumption mode that is
forcing the fans to run.

-Matt


Re: Help to configure automatic fan speed and cpu frequency on ThinkPad X260

2021-04-25 Thread Joel Carnat
I noticed that the ISO I used was a bit old. So I upgraded the system 
from source. I now run v5.8.3.33. But that doesn't solve the problem.


But I noticed the problem only occurs since I start Xorg. And I could 
notice the following message:
error: [drm:pid-1:csr_load_work_fn] *ERROR* Failed to load DMC firmware 
[https://01.org/linuxgraphics/intel-linux-graphics-firmwares], disabling 
runtime power management.


I've search for solutions but couldn't find any. I have the following 
modules loaded:

$ kldstat
Id Refs AddressSize Name
 1   37 0x8020 1eb45f0  kernel
 21 0x820b5000 73f88ehci.ko
 31 0x82129000 81680xhci.ko
 42 0x821ab000 107850   dm.ko
 51 0x822b3000 4be38dm_target_crypt.ko
 61 0x82fff000 34708acpi_thinkpad.ko
 72 0x83034000 1adc8led.ko
 81 0x8304f000 2b128acpi_video.ko
 91 0x8307b000 18280corepower.ko
102 0x83094000 ed18a8   drm.ko
112 0x83f66000 2f248iicbus.ko
121 0x83f96000 1e0d008  i915.ko
131 0x85da4000 215a28   iwm8000Cfw.ko
141 0x85fba000 2fa0 i915fw_skl_dmc_ver1.ko
151 0x85fbd000 2d80 i915fw_bxt_dmc_ver1.ko
161 0x85fc 2f60 i915fw_kbl_dmc_ver1.ko
171 0x85fc3000 1b920i915fw_skl_guc_ver1.ko
181 0x85fdf000 20200i915fw_skl_guc_ver4.ko
191 0x8600 204c0i915fw_skl_guc_ver6.ko
201 0x86a0 15   if_iwm.ko

Any idea how to solve that drm error?

Thanks,
Joel

On 24/04/2021 18:38, Joel Carnat wrote:

Hello,

I am discovering DragonflyBSD v5.8.3 on a ThinkPad X260.

I have read and configure the system according to the documentation I 
found on the website and various man pages I read. But the fan keeps 
blowing, even when the system is IDLE. And as far as I can tell, the CPU 
frequency doesn't seem to go to its minimum value ; which probably leads 
to the fan issue.


Here's what I have configured:

$ /boot/loader.conf
acpi_thinkpad_load="YES"
acpi_video_load="YES"
drm_load="YES"

$ /etc/rc.conf
powerd_enable="YES"
#powerd_flags="-u 7 -r 0.2 -T 60"

$ /etc/sysctl.conf
hw.acpi.cpu.cx_lowest=C3
machdep.mwait.CX.idle=AUTODEEP

The CPU is "Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz".

I have attached extracts from sysctl.

I already ran OpenBSD 6.x and FreeBSD 13 on that particular machine and 
when idling, then fan becomes silent. So there must be something I do 
wrong with my dfly configuration.


Any advices?

Thank you,
Joel



Installing Dragonflybsd on old board.

2021-04-25 Thread andre almeida pfeiffer
Hello,

I'm new to this list so I would like to introduce myself. My name is
Pfeiffer, I'm from Brazil and for some time now I have wanted to try
Dragonflybsd out.

My computer is an old GA 78LMT USB 3 with Amd FX and 32GB ram.

I would like to setup Dragonflybsd with some hypervisor (Best if its XEN or
KVM, although, from what I read, XEN is not currently supported).

After burning the Dragonflybsd system either to a usb stick or CD/DVD I
have been unable to get it to load the system installer. Not much
information or control is show to help me, I'm also not very knowledgeable
about operating systems inner details. Is there someone who could help me
debug and install the system in that mentioned setup? Maybe I'm missing
some setup on my board?

Thanks in advance for any help.


Help to configure automatic fan speed and cpu frequency on ThinkPad X260

2021-04-25 Thread Joel Carnat

Hello,

I am discovering DragonflyBSD v5.8.3 on a ThinkPad X260.

I have read and configure the system according to the documentation I 
found on the website and various man pages I read. But the fan keeps 
blowing, even when the system is IDLE. And as far as I can tell, the CPU 
frequency doesn't seem to go to its minimum value ; which probably leads 
to the fan issue.


Here's what I have configured:

$ /boot/loader.conf
acpi_thinkpad_load="YES"
acpi_video_load="YES"
drm_load="YES"

$ /etc/rc.conf
powerd_enable="YES"
#powerd_flags="-u 7 -r 0.2 -T 60"

$ /etc/sysctl.conf
hw.acpi.cpu.cx_lowest=C3
machdep.mwait.CX.idle=AUTODEEP

The CPU is "Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz".

I have attached extracts from sysctl.

I already ran OpenBSD 6.x and FreeBSD 13 on that particular machine and 
when idling, then fan becomes silent. So there must be something I do 
wrong with my dfly configuration.


Any advices?

Thank you,
Joel

hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S3
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.disable_on_reboot: 0
hw.acpi.handle_reboot: 1
hw.acpi.reset_video: 1
hw.acpi.cpu.cx_lowest: C3
hw.acpi.cpu.cx_lowest_use: C3
hw.acpi.cpu.px_dom0.avail: 2400 2300 2200 2000 1900 1700 1600 1400 1300 1100 
1000 800 700 500 400
hw.acpi.cpu.px_dom0.power: 14236 13487 12752 11325 10635 9292 8642 7382 6772 
5591 5020 3917 3384 2356 1861
hw.acpi.cpu.px_dom0.members: cpu3(*) cpu2(*) cpu1(*) cpu0(*)
hw.acpi.cpu.px_dom0.select: 2400
hw.acpi.cpu.px_global: 2400
hw.acpi.cpu.px_handle_notify: 1
hw.acpi.cpu0.cx_supported: C1/1 C2/151 C3/1034
hw.acpi.cpu0.cx_lowest: C3
hw.acpi.cpu0.cx_lowest_use: C3
hw.acpi.cpu0.cx_usage: 0.00% 0.00% 0.00% last 100us
hw.acpi.cpu1.cx_supported: C1/1 C2/151 C3/1034
hw.acpi.cpu1.cx_lowest: C3
hw.acpi.cpu1.cx_lowest_use: C3
hw.acpi.cpu1.cx_usage: 11.49% 64.36% 24.13% last 1563us
hw.acpi.cpu2.cx_supported: C1/1 C2/151 C3/1034
hw.acpi.cpu2.cx_lowest: C3
hw.acpi.cpu2.cx_lowest_use: C3
hw.acpi.cpu2.cx_usage: 0.00% 0.00% 0.00% last 100us
hw.acpi.cpu3.cx_supported: C1/1 C2/151 C3/1034
hw.acpi.cpu3.cx_lowest: C3
hw.acpi.cpu3.cx_lowest_use: C3
hw.acpi.cpu3.cx_usage: 0.00% 0.00% 0.00% last 100us
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.user_override: 0
hw.acpi.thermal.tz0.temperature: 56.0C
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.passive_cooling: 0
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: -1
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 128.0C
hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.thermal.tz0._TC1: -1
hw.acpi.thermal.tz0._TC2: -1
hw.acpi.thermal.tz0._TSP: -1
hw.acpi.battery.life: 99
hw.acpi.battery.time: -1
hw.acpi.battery.state: 0
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 5
hw.acpi.acline: 1
hw.acpi.video.lcd0.active: 0
hw.acpi.video.lcd0.brightness: 100
hw.acpi.video.lcd0.fullpower: 100
hw.acpi.video.lcd0.economy: 100
hw.acpi.video.lcd0.levels: 100 100 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 
96 97 98 99 100
hw.acpi.thinkpad.initialmask: 2056
hw.acpi.thinkpad.availmask: 4294967291
hw.acpi.thinkpad.events: 0
hw.acpi.thinkpad.eventmask: 2056
hw.acpi.thinkpad.hotkey: 2
hw.acpi.thinkpad.lcd_brightness: 0
hw.acpi.thinkpad.volume: 0
hw.acpi.thinkpad.mute: 0
hw.acpi.thinkpad.thinklight: 0
hw.acpi.thinkpad.bluetooth: 1
hw.acpi.thinkpad.wlan: 1
hw.acpi.thinkpad.fan_speed: 4668
hw.acpi.thinkpad.fan_level: 0
hw.acpi.thinkpad.fan: 1
hw.acpi.thinkpad.handlerevents: 1162760014
hw.sensors.cpu0.temp0: 57.00 degC (node0 core0 temp), OK
hw.sensors.cpu1.temp0: 49.00 degC (node0 core1 temp), OK
hw.sensors.cpu2.temp0: 57.00 degC (node0 core0 temp), OK
hw.sensors.cpu3.temp0: 49.00 degC (node0 core1 temp), OK
hw.sensors.cpu_node0.temp0: 56.00 degC (node0 temp), OK
hw.sensors.acpi_tz0.temp0: 56.00 degC
hw.sensors.acpi_thinkpad0.temp0: 56.00 degC
hw.sensors.acpi_thinkpad0.temp1: invalid
hw.sensors.acpi_thinkpad0.temp2: invalid
hw.sensors.acpi_thinkpad0.temp3: invalid
hw.sensors.acpi_thinkpad0.temp4: invalid
hw.sensors.acpi_thinkpad0.temp5: invalid
hw.sensors.acpi_thinkpad0.temp6: invalid
hw.sensors.acpi_thinkpad0.temp7: invalid
hw.sensors.acpi_thinkpad0.fan0: 4666 RPM
hw.sensors.dev_idmax: 7