T42 | <edp_17> Good morning all! Can I get help with LEDs, please? | 07:20 |
---|---|---|
Mister_Magister | what kind of LEDs | 07:21 |
T42 | <edp_17> RGB | 07: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-sec1 | 07: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 driver | 07:23 |
T42 | <Mister_Magister> gimme 5 mins | 07: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 ho | 07: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 think | 07:28 |
T42 | <edp_17> Yes, I thought too, but it doesn't work. | 07:28 |
T42 | <Mister_Magister> change BackEnd to BackEnd=vanilla | 07:29 |
T42 | <Mister_Magister> that should work | 07:29 |
T42 | <edp_17> only in hw-settings.ini or in 60-rgb.ini too? | 07:30 |
T42 | <Mister_Magister> only in 60-rgb | 07:30 |
T42 | <edp_17> should I restart mce? | 07:31 |
T42 | <Mister_Magister> or a phone | 07:31 |
T42 | <Mister_Magister> basically rgb backend does not exist | 07: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 to | 07:35 |
T42 | <Mister_Magister> vanilla backend does what you want | 07: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 hand | 07: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.ini | 07: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> ayyy | 08: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 then | 08:15 |
T42 | <edp_17> I'll try that too. | 08:16 |
piggz | lbt: ping | 09:03 |
lbt | hey piggz | 09:04 |
piggz | lbt: ah cool that was quick | 09:04 |
piggz | stuck downloading 5 dod packages :) | 09:04 |
lbt | linky? | 09:04 |
piggz | https://build.sailfishos.org/package/show/nemo:devel:hw:volla:yggdrasil/lipstick-qt5# | 09:05 |
piggz | lbt: getting you more work :D https://forum.sailfishos.org/t/community-meeting-on-irc-26th-may-2022/11458/15?u=piggz | 09:37 |
lbt | hehe .... yeah ... that's a good point | 09:46 |
Mister_Magister | lbt: is a good guy | 10:04 |
Thaodan | piggz: I was thinking ports could use hw-common from releases. I'm just not sure how much work that is. | 10:14 |
piggz | Thaodan: ports can use the packages just fine ... its just OBS building thats the issue with those packages not being found | 10:31 |
hummer12007 | are 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 why | 11:31 |
T42 | <TheVancedGamer> merge them together | 11: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 fails | 11:31 |
T42 | <Mister_Magister> there's nothing to merge really | 11: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 yourself | 11:31 |
T42 | <Mister_Magister> and read the code try to understand what each backend is dong | 11:33 |
T42 | <Mister_Magister> and read the code try to understand what each backend is doing (edited) | 11:34 |
Mister_Magister | fuck, i forgot to not edit,s orry | 11:34 |
Mister_Magister | i ping myself every time | 11: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 magic | 11: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 happens | 11: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-Bus | 11:53 |
mal | are 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 |
mal | is that f5121 backend correct for you? | 12:01 |
T42 | <edp_17> No, because white doesn't work properly. | 12:02 |
mal | you need to show what files you have in the led folder | 12:02 |
mal | the one with brightness file etc | 12:03 |
T42 | <edp_17> mal : I have these: https://paste.ubuntu.com/p/T6VY86sYSk/ | 12:03 |
mal | based on that vanilla should work https://github.com/mer-hybris/mce-plugin-libhybris/blob/master/sysfs-led-vanilla.c#L274 | 12:08 |
Mister_Magister | mal: thats what i recommended | 12:09 |
mal | unless there is some issue with the driver and for example some of those things fail | 12:09 |
mal | checking permissions would be good also | 12:10 |
mal | if those other files have wrong permissions | 12:11 |
Mister_Magister | mal: if using vanilla, what should be inputted in csd? | 12:14 |
Mister_Magister | also 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_Magister | thats what i asked just now xd | 12:18 |
Mister_Magister | maybe try vanilla there | 12: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_Magister | you can try mce options | 12:22 |
Mister_Magister | there are couple test patterns iirc | 12:22 |
Mister_Magister | mcetool is the command i'm talking about | 12:24 |
Mister_Magister | --enable-led-pattern= | 12:24 |
Mister_Magister | and --show-led-patterns | 12:24 |
Mister_Magister | if all patterns work fine then theres no issue | 12:25 |
* Mister_Magister why do i know this stuff | 12:25 | |
mal | can you show the mce config you have now | 12:26 |
mal | @edp_17 csd config is separate from mce config | 12:27 |
T42 | <edp_17> @Mister_Magister : Is this what you need? output of mcetool : https://paste.ubuntu.com/p/bHVGhgc9C8/ | 12:28 |
Mister_Magister | no | 12:29 |
Mister_Magister | im saying you can use mcetool to enable different led patterns | 12:29 |
Mister_Magister | and see if they work | 12: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 |
mal | can 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 |
mal | well since mce should be running as root those should be fine | 12: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 explicitly | 16: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 |
piggz | lbt: ping :) | 16:54 |
mal | @AntonlX how were you building the package? | 16:55 |
T42 | <AntonlX> @mal rpm/dhd/helpers/build_packages.sh --droid-hal | 16:56 |
T42 | <elros34> @AntonlX grep logs: https://github.com/mer-hybris/droid-hal-device/pull/324#discussion_r859585753 | 16:56 |
piggz | mal: strange build failure https://build.sailfishos.org/package/live_build_log/nemo:devel:hw:volla:yggdrasil/lipstick-qt5/sailfish_latest_aarch64/aarch64 | 17:26 |
mal | piggz: which version are you building? did you check which one 4.4 should have? | 17:28 |
piggz | yeah i think i did | 17:28 |
mal | recheck that | 17:28 |
piggz | mal: yeah, 0.36.3.2 is on my pro1 | 17:31 |
mal | piggz: maybe check the meta of that project, it might give some hint | 17:33 |
mal | not sure why it has one 4.1.0 repo as dependency | 17:34 |
mal | also the order is wrong of those | 17:34 |
mal | sailfishos main dependency should be last in the list | 17:34 |
piggz | thats actually an old repo , i should have used the :los17 subproject... | 17:42 |
piggz | trying that now | 17: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 vain | 22:05 |
Thaodan | I'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_output | 22:55 |
Thaodan | The plugin now emits markdown instead of just plain changelog style files | 22:55 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!