[1] MLD-5.x / Feature requests / nuc-LED für MLD-5.5...
 

Offline wayne

  • Profi Member
  • ****
  • Posts: 264
    • View Profile
nuc-LED für MLD-5.5...
« on: April 16, 2021, 15:24:31 »
Hallo,

ich wünsche mir das Paket nuc-LED auch für die MLD-5.5 (unstable)...  ;) 8)


Danke und Grüße,
wayne
VDR:
SAT>IP Kathrein EXIP 418
​streamdev-Server: MLD 5.5 testing, VM in proxmox
(alt: ​streamdev-Server: ASRock J3160, MLD 5.5 testing, ​​​Mystique SaTiX-S2 V3 Dual + DuoFlex S2, 8GB, 60GB System,)
streamdev-Client 1: NUC6CAYS (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​
​streamdev-Client 2: NUC6CAYH (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​​
Media-Server: Synology DS215j
AV-Geräte: ​Hisense H65MEC5550, Dali Zensor 5 AX, Teufel S6000SW

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20120
    • View Profile
    • ClausMuus.de
nuc-LED für MLD-5.5...
« Reply #1 on: April 16, 2021, 22:20:04 »
Ich hab das auf eine andere Quelle für die Sourcen umgestellt, die Anpassungen für den neueren Kernel enthält. Bitte teste ob das noch funktioniert.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline wayne

  • Profi Member
  • ****
  • Posts: 264
    • View Profile
nuc-LED für MLD-5.5...
« Reply #2 on: April 19, 2021, 20:25:59 »
Hab's nun nuc-LED installiert, aber die LED bleibt dunkel:

Code: [Select]
Apr 19 20:19:33 MLD user.warn kernel: [    7.110001] nuc_led: loading out-of-tree module taints kernel.
Apr 19 20:19:33 MLD user.info kernel: [    7.110486] nuc_led: Intel NUC LED control driver loaded
Code: [Select]
Apr 19 20:19:53 MLD user.warn kernel: [   27.661288] nuc_led: Invalid action (power) while setting NUC LED state
VDR:
SAT>IP Kathrein EXIP 418
​streamdev-Server: MLD 5.5 testing, VM in proxmox
(alt: ​streamdev-Server: ASRock J3160, MLD 5.5 testing, ​​​Mystique SaTiX-S2 V3 Dual + DuoFlex S2, 8GB, 60GB System,)
streamdev-Client 1: NUC6CAYS (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​
​streamdev-Client 2: NUC6CAYH (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​​
Media-Server: Synology DS215j
AV-Geräte: ​Hisense H65MEC5550, Dali Zensor 5 AX, Teufel S6000SW

Offline rfehr

  • MLD-Developer
  • Expert Member
  • ******
  • Posts: 1462
    • View Profile
nuc-LED für MLD-5.5...
« Reply #3 on: April 19, 2021, 21:17:41 »
« Last Edit: April 19, 2021, 22:43:26 by rfehr »
1x OctopusNet 4x DVB-C
1x Zotac ITX-A Atom 330
1x RPI2 als Client
1x BananaPi
1x Wetekplay
1x MCC 100
2x RPI3
2x RPi4
1x https://www.zotac.com/at/product/mini_pcs/pi335

Offline wayne

  • Profi Member
  • ****
  • Posts: 264
    • View Profile
nuc-LED für MLD-5.5...
« Reply #4 on: April 19, 2021, 22:13:19 »
Kann das BIOS vom NUC nixht auch selbst?
Ja schon, aber nicht ganz.
Im Bios kann ich nur statisch die verschiedenen Sleep-Modi einstellen.
Mit nuc-LED kann man auch dynamisch z.B. bei einer Aufnahme rot blinken lassen...
VDR:
SAT>IP Kathrein EXIP 418
​streamdev-Server: MLD 5.5 testing, VM in proxmox
(alt: ​streamdev-Server: ASRock J3160, MLD 5.5 testing, ​​​Mystique SaTiX-S2 V3 Dual + DuoFlex S2, 8GB, 60GB System,)
streamdev-Client 1: NUC6CAYS (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​
​streamdev-Client 2: NUC6CAYH (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​​
Media-Server: Synology DS215j
AV-Geräte: ​Hisense H65MEC5550, Dali Zensor 5 AX, Teufel S6000SW

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20120
    • View Profile
    • ClausMuus.de
nuc-LED für MLD-5.5...
« Reply #5 on: April 19, 2021, 22:42:05 »
Eventuell hat sich ja die Ansteuerung der LED geändert. Hier ist die Anleitung zum nuc_led. Teste doch mal, ob Du die auf der Console angesprochen bekommst.
https://github.com/endever/intel_nuc_led/blob/master/README.md
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline iNOB

  • Profi Member
  • ****
  • Posts: 384
    • View Profile
nuc-LED für MLD-5.5...
« Reply #6 on: April 20, 2021, 11:13:28 »
Das passiert beim Laden des Treibers:
Code: [Select]
[   36.203651] nuc_led: Invalid action (power) while setting NUC LED state
[  102.805949] BUG: kernel NULL pointer dereference, address: 0000000000000001
[  102.805965] #PF: supervisor read access in kernel mode
[  102.805970] #PF: error_code(0x0000) - not-present page
[  102.805973] PGD 0 P4D 0
[  102.805979] Oops: 0000 [#1] SMP NOPTI
[  102.805984] CPU: 2 PID: 5666 Comm: cat Tainted: G           O      5.11.3.202.111 #1
[  102.805991] Hardware name: Intel(R) Client Systems NUC6CAYH/NUC6CAYB, BIOS AYAPLCEL.86A.0066.2020.0107.1027 01/07/2020
[  102.805995] RIP: 0010:acpi_proc_read+0x9a/0x780 [nuc_led]
[  102.806003] Code: 44 24 20 48 8d 4c 24 28 48 c7 c7 90 54 49 c0 48 89 44 24 30 e8 97 2e f6 ff 85 c0 0f 85 c9 06 00 00 4c 8b 7c 24 40 49 8b 57 08 <0f> b6 5a 01 85 db 0f 84 49 06 00 00 89 d9 8d 51 ff 83 c0 01 21 d1
[  102.806010] RSP: 0018:ffffb79e05c5be18 EFLAGS: 00010246
[  102.806015] RAX: 0000000000000000 RBX: ffff8b1944d07780 RCX: 0000000000000000
[  102.806019] RDX: 0000000000000000 RSI: c5ce88cd34fe11be RDI: 0000000000000000
[  102.806023] RBP: ffff8b1941645d00 R08: 0000000000000000 R09: ffffb79e05c5be50
[  102.806027] R10: ffff8b1941c966e0 R11: 0000000000000001 R12: 0000000000000001
[  102.806030] R13: 00007fff85e7a3d0 R14: 0000000000000000 R15: ffff8b19634c5d20
[  102.806034] FS:  00007f039df84740(0000) GS:ffff8b1ab8500000(0000) knlGS:0000000000000000
[  102.806039] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  102.806043] CR2: 0000000000000001 CR3: 0000000126462000 CR4: 00000000003506e0
[  102.806047] Call Trace:
[  102.806053]  proc_reg_read+0x36/0x80
[  102.806061]  vfs_read+0x93/0x180
[  102.806068]  ksys_read+0x54/0xd0
[  102.806072]  do_syscall_64+0x33/0x40
[  102.806080]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  102.806086] RIP: 0033:0x7f039e071461
[  102.806091] Code: fe ff ff 50 48 8d 3d fe d0 09 00 e8 e9 03 02 00 66 0f 1f 84 00 00 00 00 00 48 8d 05 99 62 0d 00 8b 00 85 c0 75 13 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 57 c3 66 0f 1f 44 00 00 41 54 49 89 d4 55 48
[  102.806098] RSP: 002b:00007fff85e7a398 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[  102.806103] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f039e071461
[  102.806107] RDX: 0000000000001000 RSI: 00007fff85e7a3d0 RDI: 0000000000000003
[  102.806111] RBP: 00007fff85e7a3d0 R08: 0000000000000000 R09: 0000000001000000
[  102.806114] R10: fffffffffffffb8f R11: 0000000000000246 R12: 0000000000001000
[  102.806118] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
[  102.806124] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_soc_skl snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi snd_soc_core nuc_led(O) snd_compress snd_pcm_dmaengine ac97_bus i915 snd_hda_intel snd_intel_dspcfg snd_hda_codec i2c_i801 cec snd_hda_core i2c_smbus snd_hwdep snd_pcm drm_kms_helper snd_timer r8169 snd ir_rc6_decoder drm wmi rc_rc6_mce ite_cir rc_core video coretemp i2c_dev uinput
[  102.806180] CR2: 0000000000000001
[  102.806184] ---[ end trace bb8c743c9c9d41d4 ]---
[  104.944909] RIP: 0010:acpi_proc_read+0x9a/0x780 [nuc_led]
[  104.944926] Code: 44 24 20 48 8d 4c 24 28 48 c7 c7 90 54 49 c0 48 89 44 24 30 e8 97 2e f6 ff 85 c0 0f 85 c9 06 00 00 4c 8b 7c 24 40 49 8b 57 08 <0f> b6 5a 01 85 db 0f 84 49 06 00 00 89 d9 8d 51 ff 83 c0 01 21 d1
[  104.944934] RSP: 0018:ffffb79e05c5be18 EFLAGS: 00010246
[  104.944939] RAX: 0000000000000000 RBX: ffff8b1944d07780 RCX: 0000000000000000
[  104.944944] RDX: 0000000000000000 RSI: c5ce88cd34fe11be RDI: 0000000000000000
[  104.944947] RBP: ffff8b1941645d00 R08: 0000000000000000 R09: ffffb79e05c5be50
[  104.944951] R10: ffff8b1941c966e0 R11: 0000000000000001 R12: 0000000000000001
[  104.944955] R13: 00007fff85e7a3d0 R14: 0000000000000000 R15: ffff8b19634c5d20
[  104.944959] FS:  00007f039df84740(0000) GS:ffff8b1ab8500000(0000) knlGS:0000000000000000
[  104.944963] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  104.944967] CR2: 0000000000000001 CR3: 0000000126462000 CR4: 00000000003506e0
« Last Edit: April 20, 2021, 19:04:25 by clausmuus »

Offline razie

  • Member
  • **
  • Posts: 94
    • View Profile
nuc-LED für MLD-5.5...
« Reply #7 on: April 22, 2021, 10:29:12 »
Bei mir funktioniert das neue nuc_led auch nicht, bzw. nuc_led funktioniert jetzt nicht mehr.

Ich lese das in der Anleitung so, dass dieses nuc_led ausschließlich für die NUC8 geeignet ist, wogegen die vorherige Version für die NUC6 und NUC7 bestimmt war:

Quote
Intel NUC8i7HVK LED Control

This is a simple kernel module to control the LEDs on Intel NUC8i7HVK (Hades) kits.

This module is intended as a demonstration/proof-of-concept and may not be maintained further. Perhaps it can act as a jumping off point for a more polished and complete implementation. For testing and basic manipulation of the LEDs, it ought to work fine, but use with caution none the less. This has only been tested on 5.6.x kernels.

This kernel module was initially developed by Miles Peterson (https://github.com/milesp20/intel_nuc_led) for Intel NUC7ixBN and NUC6CAY LED Control, then forked for NIC8ixHVK LED control by Patrick Kullman (https://github.com/nomego/intel_nuc_led).

Grüße
Ralf

MLD 5.4: NUC6CAYH - 8 GB RAM - 2 TB SSD - SATIP - FLIRC - CEC (Pulse Eight)
MLD 5.4: Testsystem auf VirtualBox - SATIP
SAT>IP : Digital Devices Octopus NET S2X Basic - 8 Tuner (DD MAX S8 Basic intern verbaut)

Offline wayne

  • Profi Member
  • ****
  • Posts: 264
    • View Profile
nuc-LED für MLD-5.5...
« Reply #8 on: April 25, 2021, 09:48:39 »
Ich lese das in der Anleitung so, dass dieses nuc_led ausschließlich für die NUC8 geeignet ist, wogegen die vorherige Version für die NUC6 und NUC7 bestimmt war:

Quote
Intel NUC8i7HVK LED Control
This is a simple kernel module to control the LEDs on Intel NUC8i7HVK (Hades) kits.
...
This kernel module was initially developed by Miles Peterson (https://github.com/milesp20/intel_nuc_led) for Intel NUC7ixBN and NUC6CAY LED Control, then forked for NIC8ixHVK LED control by Patrick Kullman (https://github.com/nomego/intel_nuc_led).

Grüße
Ralf
...jetzt, wo Du das so sagst, würde ich das auch so verstehen... :(
VDR:
SAT>IP Kathrein EXIP 418
​streamdev-Server: MLD 5.5 testing, VM in proxmox
(alt: ​streamdev-Server: ASRock J3160, MLD 5.5 testing, ​​​Mystique SaTiX-S2 V3 Dual + DuoFlex S2, 8GB, 60GB System,)
streamdev-Client 1: NUC6CAYS (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​
​streamdev-Client 2: NUC6CAYH (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​​
Media-Server: Synology DS215j
AV-Geräte: ​Hisense H65MEC5550, Dali Zensor 5 AX, Teufel S6000SW

Offline razie

  • Member
  • **
  • Posts: 94
    • View Profile
nuc-LED für MLD-5.5...
« Reply #9 on: April 25, 2021, 10:46:29 »
Was ich grad sehe ... die Syntax für die Ansteuerung der LEDs ist ebenfalls komplett anders.
Es können viel mehr LEDs angesteuert werden...
Vielleicht reagiert die Ring-LED auf eines der Kommandos...

Mal sehen ... vielleicht schaff ich es heute oder morgen mal zu testen, ob man es für den NUC6 doch irgendwie zum laufen bekommt.

@wayne
Hast du da schon was ausprobiert?

Gruß
Ralf
MLD 5.4: NUC6CAYH - 8 GB RAM - 2 TB SSD - SATIP - FLIRC - CEC (Pulse Eight)
MLD 5.4: Testsystem auf VirtualBox - SATIP
SAT>IP : Digital Devices Octopus NET S2X Basic - 8 Tuner (DD MAX S8 Basic intern verbaut)

Offline wayne

  • Profi Member
  • ****
  • Posts: 264
    • View Profile
nuc-LED für MLD-5.5...
« Reply #10 on: April 25, 2021, 10:47:46 »
@wayne
Hast du da schon was ausprobiert?

Nee, habe noch nix gemacht...
VDR:
SAT>IP Kathrein EXIP 418
​streamdev-Server: MLD 5.5 testing, VM in proxmox
(alt: ​streamdev-Server: ASRock J3160, MLD 5.5 testing, ​​​Mystique SaTiX-S2 V3 Dual + DuoFlex S2, 8GB, 60GB System,)
streamdev-Client 1: NUC6CAYS (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​
​streamdev-Client 2: NUC6CAYH (Intel HD Graphics 500), MLD 5.5 testing, One For All URC 7960, ​​
Media-Server: Synology DS215j
AV-Geräte: ​Hisense H65MEC5550, Dali Zensor 5 AX, Teufel S6000SW

Offline razie

  • Member
  • **
  • Posts: 94
    • View Profile
nuc-LED für MLD-5.5...
« Reply #11 on: April 25, 2021, 12:02:55 »
@clausmuus
@wayne

Ich habe nun die NEUE Version von nuc-led ausführlich getestet.

Diese ist offensichtlich, so wie ich es oben schon vermutet hatte, tatsächlich nur für den NUC8i7HVK (Hades), also den NUC mit dem beleuchteten Totenkopf, gedacht. Da kann man die Augen, Knochen, etc. separat ansteuern. Diese Version hat auch keine Ring-LED.

Egal welchen LED-Code ich sendete, egal für welche LED, der NUC6 reagiert nicht darauf.

Hier liefert dann

cat /proc/acpi/nuc_led
Code: [Select]
Killed

Die vorherige Version von nuc-led läuft unter MLD5.4 Testing dagegen natürlich einwandfrei.

Bei mir liefert dann

cat /proc/acpi/nuc_led
Code: [Select]
Power LED not set for software control

Ring LED Brightness: 25%
Ring LED Blink/Fade: Always On (0x04)
Ring LED Color: Green (0x06)

Gruß
Ralf

MLD 5.4: NUC6CAYH - 8 GB RAM - 2 TB SSD - SATIP - FLIRC - CEC (Pulse Eight)
MLD 5.4: Testsystem auf VirtualBox - SATIP
SAT>IP : Digital Devices Octopus NET S2X Basic - 8 Tuner (DD MAX S8 Basic intern verbaut)

Offline razie

  • Member
  • **
  • Posts: 94
    • View Profile
nuc-LED für MLD-5.5...
« Reply #12 on: April 25, 2021, 15:09:15 »
Ich habe hier noch eine neue Quelle für nuc-led gefunden...

Mit Anpassungen für NUC 6,7 und 10 sowie für neuere Kernelversionen.
Vielleicht geht das für MLD5.5 (und hoffentlich auch noch für 5.4)

https://github.com/uboslinux/intel-nuc-led

Quote
This is a simple kernel module to control LEDs on Intel NUCs, with optional high-level userspace tools.

It is based on the previous work at github.com/milesp20/intel_nuc_led, but with significant changes:

it can be used with the more recent NUC10 as well
it tracks the more recent kernel APIs
the kernel API is very low-level, and you'll be sending and receiving bytes
higher-level commands like "turn the power LED to flashing red" are not implemented in the kernel module itself, but in user space.

Grüße
Ralf
« Last Edit: April 25, 2021, 15:16:16 by razie »
MLD 5.4: NUC6CAYH - 8 GB RAM - 2 TB SSD - SATIP - FLIRC - CEC (Pulse Eight)
MLD 5.4: Testsystem auf VirtualBox - SATIP
SAT>IP : Digital Devices Octopus NET S2X Basic - 8 Tuner (DD MAX S8 Basic intern verbaut)

Offline Dido

  • Adv. Member
  • ***
  • Posts: 130
    • View Profile
nuc-LED für MLD-5.5...
« Reply #13 on: April 25, 2021, 15:11:48 »
Hi,

mal rein interessehalber, habe auch das Problem das nuc-led in MLD 5.4 Testing mit meinem NUC6 nicht mehr funktioniert. Wie komme ich in einen solchen Fall auf die vorherige Version zurück ?
Server : MLD 5.5 Testing X86/64 PC
Client 1 : MLD 5.5 Testing X86/64 NUC6CAYH
Client 2 : MLD 5.5 Testing X86/64 NUC6CAYH

Offline razie

  • Member
  • **
  • Posts: 94
    • View Profile
nuc-LED für MLD-5.5...
« Reply #14 on: April 25, 2021, 15:21:06 »
Das geht am leichtesten übers WebInterface.

System>Konfiguration>Snapshots>Restore

Und da die letzte funktionierende MLD Version wählen.
Dann Speichen und dann auf Reboot gehen.

So stellst du das letzte funktionierende System wieder her...

Gruß
Ralf
MLD 5.4: NUC6CAYH - 8 GB RAM - 2 TB SSD - SATIP - FLIRC - CEC (Pulse Eight)
MLD 5.4: Testsystem auf VirtualBox - SATIP
SAT>IP : Digital Devices Octopus NET S2X Basic - 8 Tuner (DD MAX S8 Basic intern verbaut)

[1] MLD-5.x / Feature requests / nuc-LED für MLD-5.5...
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.