Wednesday, 2022-05-25

T42<edp_17> Good morning all! Can I get help with LEDs, please?07:20
Mister_Magisterwhat kind of LEDs07:21
T42<edp_17> RGB07:21
T42<edp_17> I have these: https://paste.ubuntu.com/p/T6VY86sYSk/07:21
T42<edp_17> When I echo 255 into brightness or 1 into blink, the LED lights up or blinks.07:21
T42<Mister_Magister> whats in led-sec107:22
T42<Mister_Magister> in that specific color? (re @edp_17: When I echo 255 into...)07:23
T42<edp_17> led-sec1: https://paste.ubuntu.com/p/2m2sWjq98C/07:23
T42<edp_17> Yes. (re @Mister_Magister: in that specific col...)07:23
T42<Mister_Magister> okay, now you just need proper mce driver07:23
T42<Mister_Magister> gimme 5 mins07:23
T42<edp_17> Okay, thanks.07:23
T42<edp_17> I think hw-settings.ini is correct: https://paste.ubuntu.com/p/73Rpkc3SBj/07:25
T42<Mister_Magister> hw-settings is unrelated to that ho07:26
T42<Mister_Magister> hw-settings is unrelated to that tho (edited)07:26
T42<edp_17> And have this 60-rgb.ini : https://paste.ubuntu.com/p/cZWJdJzzpb/07:26
T42<edp_17> in /etc/mce/07:27
T42<Mister_Magister> should work then i think07:28
T42<edp_17> Yes, I thought too, but it doesn't work.07:28
T42<Mister_Magister> change BackEnd to BackEnd=vanilla07:29
T42<Mister_Magister> that should work07:29
T42<edp_17> only in hw-settings.ini or in 60-rgb.ini too?07:30
T42<Mister_Magister> only in 60-rgb07:30
T42<edp_17> should I restart mce?07:31
T42<Mister_Magister> or a phone07:31
T42<Mister_Magister> basically rgb backend does not exist07:32
T42<edp_17> Something changed. When I restarted mce, green light up. Then in csd, white-is was okay, but no red, no blue and no green.07:33
T42<edp_17> How can I create rgb backend?07:35
T42<edp_17> Can I create at all?07:35
T42<Mister_Magister> you don't need to07:35
T42<Mister_Magister> vanilla backend does what you want07:35
T42<edp_17> Oka, then I need to make it work somehow.07:36
T42<Mister_Magister> do you need to write to blink to make the red light up?07:36
T42<edp_17> Well, when backend was rgb yes if I write "1" into blink, that led blink. Now, it doesn't work.07:38
T42<edp_17> The same with brightness.07:38
T42<Mister_Magister> backend doesn't really matter when controlling it by hand07:38
T42<Mister_Magister> im basically asking if you write 255 into brightness, does it not light up until you write into blink?07:39
T42<edp_17> I didn't try them together. What I tried was: wrote "255" into brightness, led lit up (then wrote "0" into brightness and led gone) then I wrote "1" into blink and the let started to blink (then I wrote "0" into blink and led stoped blinking)07:40
T42<edp_17> But now, none of these work.07:41
T42<edp_17> Let me try again.07:41
T42<edp_17> backend=vanilla, mce restarted, wrote "255" into led_r/brightness => nothing, then wrote "1" into led_r/blink => nothing.07:44
T42<edp_17> However, when the screen is off, now blue-is led is on as the device is charging. This didn't happen before.07:44
T42<Mister_Magister> you might try this backend https://github.com/mer-hybris/mce-plugin-libhybris/blob/master/inifiles/60-f5121.ini07:45
T42<edp_17> Thanks! I'll try.07:45
T42<edp_17> Okay, using BackEnd=f5121 blue,red and green works in csd, except white. :)07:53
T42<Mister_Magister> ayyy08:03
T42<edp_17> Let me reboot.08:07
T42<edp_17> Interesting. When I turned the device off, red lit up = this is normal. After reboot, blue & green are blinking, even when gui is started. I think this (green and blue together) supposed to be white on device.08:12
T42<edp_17> Blue & green are lit when I connect charger (screen off) and gone when disconnect charger.08:13
T42<edp_17> and they are gone too when I wake up screen.08:14
T42<Mister_Magister> maybe should stick to vanilla then08:15
T42<edp_17> I'll try that too.08:16
piggzlbt: ping09:03
lbthey piggz09:04
piggzlbt: ah cool that was quick09:04
piggzstuck downloading 5 dod packages :)09:04
lbtlinky?09:04
piggzhttps://build.sailfishos.org/package/show/nemo:devel:hw:volla:yggdrasil/lipstick-qt5#09:05
piggzlbt: getting you more work :D https://forum.sailfishos.org/t/community-meeting-on-irc-26th-may-2022/11458/15?u=piggz09:37
lbthehe .... yeah ... that's a good point09:46
Mister_Magisterlbt: is a good guy10:04
Thaodanpiggz: I was thinking ports could use hw-common from releases. I'm just not sure how much work that is.10:14
piggzThaodan: ports can use the packages just fine ... its just OBS building thats the issue with those packages not being found10:31
hummer12007are there any 4.4/4.9 adaptations for loire devices by the community?10:52
hummer12007(suzu)10:53
T42<edp_17> @Mister_Magister : It looks like BackEnd=vanilla makes white led works, but not the others (red/green/blue). And BackEnd=f5121 makes all red/green/blue work but not white. :)11:30
T42<Mister_Magister> which is interesting because i have no idea why11:31
T42<TheVancedGamer> merge them together11:31
T42<Mister_Magister> thats the issue (re @TheVancedGamer: merge them together)11:31
T42<TheVancedGamer> or at least try to figure out where it fails11:31
T42<Mister_Magister> there's nothing to merge really11:31
T42<TheVancedGamer> what device is it?11:31
T42<Mister_Magister> @edp_17 i would try to disable the led control by mce and then try the stuff yourself11:31
T42<Mister_Magister> and read the code try to understand what each backend is dong11:33
T42<Mister_Magister> and read the code try to understand what each backend is doing (edited)11:34
Mister_Magisterfuck, i forgot to not edit,s orry11:34
Mister_Magisteri ping myself every time11:34
T42<edp_17> @Mister_Magister : "try to disable the led control by mce" - How? "and then try the stuff yourself" - how? - Do you have an example?11:40
T42<Mister_Magister> remove the config (re @edp_17: @Mister_Magister : "...)11:40
T42<Mister_Magister> or do some mce magic11:40
T42<edp_17> @TheVancedGamer : This is the Galaxy S4 (i9505)11:40
T42<Mister_Magister> @edp_17 just like you were doing, with writting to brightness and blink, different combinations, see what happens11:40
T42<edp_17> When I manually write values into brightness/blink, all LEDs do work fine.11:41
T42<edp_17> Can if be that "60-battery-udev-devices.ini" interferes?11:42
T42<edp_17> I've compared the f5121 and vanilla and they are almost identical, except f5121 uses f5121_paths while vanilla uses paths. (re @Mister_Magister: and read the code tr...)11:47
T42<edp_17> Oh, and the "mce -Tq -l plugin*:* -l sysfs*:* -l hybris*:* -l modules/led.c:*" command gives me : mce: T+0.000 C: mce-dbus.c: dbus_acquire_services(): Cannot acquire service com.nokia.mce: (null): (null)11:53
T42<edp_17> mce: T+0.000 C: mce.c: main(): Failed to initialise D-Bus11:53
malare you sure you don't have mce running already?11:54
T42<edp_17> Yes, it is running. Shoud I stop that? :)11:54
T42<edp_17> I stopped mce and re-run the command, here is the log : https://paste.ubuntu.com/p/xcXqdt74DG/11:57
T42<edp_17> I am not sure what I expected to see in there.11:57
T42<edp_17> What I've done was, woke up the screen and run the LED test in csd.11:58
malis that f5121 backend correct for you?12:01
T42<edp_17> No, because white doesn't work properly.12:02
malyou need to show what files you have in the led folder12:02
malthe one with brightness file etc12:03
T42<edp_17> mal : I have these: https://paste.ubuntu.com/p/T6VY86sYSk/12:03
malbased on that vanilla should work https://github.com/mer-hybris/mce-plugin-libhybris/blob/master/sysfs-led-vanilla.c#L27412:08
Mister_Magistermal: thats what i recommended12:09
malunless there is some issue with the driver and for example some of those things fail12:09
malchecking permissions would be good also12:10
malif those other files have wrong permissions12:11
Mister_Magistermal: if using vanilla, what should be inputted in csd?12:14
Mister_Magisteralso vanilla?12:14
T42<edp_17> mal : Yes, it should but when I test it with csd, only white led is blinking, the others (red/blue/green) do not lit up.12:16
T42<edp_17> in csd config I still have LedType=RGB. Is this the problem?12:18
Mister_Magisterthats what i asked just now xd12:18
Mister_Magistermaybe try vanilla there12:18
T42<edp_17> I just did and still only white works in there.12:19
T42<edp_17> I don't bother csd if LEDs do work otherwise. How can I test them?12:19
Mister_Magisteryou can try mce options12:22
Mister_Magisterthere are couple test patterns iirc12:22
Mister_Magistermcetool is the command i'm talking about12:24
Mister_Magister--enable-led-pattern=12:24
Mister_Magisterand --show-led-patterns12:24
Mister_Magisterif all patterns work fine then theres no issue12:25
* Mister_Magister why do i know this stuff12:25
malcan you show the mce config you have now12:26
mal@edp_17 csd config is separate from mce config12:27
T42<edp_17> @Mister_Magister : Is this what you need? output of mcetool : https://paste.ubuntu.com/p/bHVGhgc9C8/12:28
Mister_Magisterno12:29
Mister_Magisterim saying you can use mcetool to enable different led patterns12:29
Mister_Magisterand see if they work12:29
T42<edp_17> oh, okay, a second.12:29
mal@edp_17 in csd config you should have LedType=RGB, mce config is where the backend is defined (/etc/mce/)12:30
T42<edp_17> Yeah, in csd config I put back the LedType=RGB (also tried with vanilla) and here is the config from /etc/mce : https://paste.ubuntu.com/p/wTJ5W83ZNf/12:31
malcan you check also the permissions of the files in /sys/class/leds/led_b/ (use ls -l)12:32
T42<edp_17> Have also tried with this mce config: https://paste.ubuntu.com/p/z8XJyrXcV7/12:33
T42<edp_17> mal : permissions : https://paste.ubuntu.com/p/7X2zvTD6RS/12:34
malwell since mce should be running as root those should be fine12:43
T42<edp_17> Yeah, and mce is not crashing, so vanilla should work. Unless something else interferes.12:47
T42<edp_17> Time to time the USB mode selection pops up even when the device is not connected. It looks like something restarted (usb-moded?) and I am not sure that has any impact on LEDs.12:49
T42<AntonlX> Hi, I got this error when trying to build droid-hal.16:52
T42<AntonlX> NOTICE: No packages found and none specified explicitly16:52
T42<AntonlX> Fatal: None of the selected test suites operate on the selected test levels. Nothing to do.16:52
T42<AntonlX> How to fix it?16:52
piggzlbt: ping :)16:54
mal@AntonlX how were you building the package?16:55
T42<AntonlX> @mal rpm/dhd/helpers/build_packages.sh --droid-hal16:56
T42<elros34> @AntonlX grep logs: https://github.com/mer-hybris/droid-hal-device/pull/324#discussion_r85958575316:56
piggzmal: strange build failure https://build.sailfishos.org/package/live_build_log/nemo:devel:hw:volla:yggdrasil/lipstick-qt5/sailfish_latest_aarch64/aarch6417:26
malpiggz: which version are you building? did you check which one 4.4 should have?17:28
piggzyeah i think i did17:28
malrecheck that17:28
piggzmal: yeah, 0.36.3.2 is on my pro117:31
malpiggz: maybe check the meta of that project, it might give some hint17:33
malnot sure why it has one 4.1.0 repo as dependency17:34
malalso the order is wrong of those17:34
malsailfishos main dependency should be last in the list17:34
piggzthats actually an old repo , i should have used the :los17 subproject...17:42
piggztrying that now17:42
T42<elros34> piggz: about screenshot patch, it doesn't fix memory leak on my port but blank screenshots. BTW I have suggested it for jolla tablet (which AFAIK also have broken screenshots) long time ago but in vain22:05
ThaodanI'm working on improved version of dnf repo-diff plugin to generate changelog for repos to be used in ports: https://github.com/Thaodan/dnf-plugins-core/tree/improve_changelog_output22:55
ThaodanThe plugin now emits markdown instead of just plain changelog style files22:55

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!