Wednesday, 2020-05-27

T42<edp_17> That error disappeared from log, but there is still no sound:
T42<elros34> module still fails, did you remove whole hdmi node or just one line?00:06
T42<edp_17> Just one line.00:06
T42<elros34> I would try whole node, also just for testing fix also others entries which fail like: AUDIO_DEVICE_IN_PLAYBACK00:09
T42<edp_17> Here is the log for when I commented out the whole hdmi section (node):
T42<elros34> clearly it fails: Failed to load module "module-droid-card" (argument: "rate=48000"): initialization failed.00:09
T42<edp_17> This is coming from /etc/pulse/
T42<edp_17> On my S2 I have the file : /etc/pulse/ with content "load-module module-droid-card rate=48000 quirks=+no_hw_volume".00:13
T42<edp_17> But when I copied it to the device there was no sound either, so I removed.00:13
T42<elros34> how about you focus on audio_policy.conf and remove those few lines which fail first? If that will not fix issue then you try other things00:14
T42<edp_17> Okay, I just mentioned the other file.00:15
T42<edp_17> Should I comment out the whole node or just one line where the AUDIO_DEVICE_IN_PLAYBACK can be found?00:15
T42<edp_17> I commented out only one line and there is sound. ๐Ÿ‘00:18
T42<edp_17> However it is not routed to the headphone00:18
T42<elros34> evdev_trace -t shows something when you plugin headphones?00:19
T42<edp_17> Oh, did I need to run this when the earphone is plugged in? I ran it without then I used the same solution as for the S2.00:21
T42<edp_17> Now the evdev_trace shows a /dev/input/event15 (Headset)00:22
T42<elros34> I guess you mean h2w, if /sys/class/switch/h2w/state change the should be good also00:25
T42<edp_17> Yeah, I have checked and that state has changed from 0 to 2 when I plugged the earphone in.00:26
T42<edp_17> After reboot, the sound works and it is routed to the headphones. Thank you!00:32
T42<edp_17> How can I add this modified file to the sparse? Should I simply create a /system/etc/audio_policy.conf?00:33
T42<elros34> system is read only partition provided by cm so. Maybe you could make fixed copy of it some other place and add config=/path to file in droid module00:34
T42<elros34> or add missing entires to pulseaudio00:35
T42<edp_17> How can I add the missing entries to pulseaudio?00:36
T42<elros34> I am not sure it's good idea, you should ask jusa if you really want to do this.00:37
T42<edp_17> At the moment I am happy with the current solution. Thanks for the help.00:40
T42<edp_17> There are a few other things you may help with.00:40
T42<edp_17> I am not sure why but the vibra doesn't work either.00:41
T42<elros34> so config=/path/to/policy works?00:41
T42<edp_17> I have not tried that.00:41
T42<edp_17> I only changed the file in /system/etc and left it there.00:42
T42<elros34> that is good for you but if you want to share image with others then they will have to to the same00:43
T42<edp_17> That's true. Do you know where I can find that file in droid module where I need to add this path?00:44
T42<elros34> I guess same way as quirks?00:48
T42<edp_17> I am not sure. I have checked the pulseaudio.service and it uses a config file from /etc/sysconfig/pulseaudio which has one line in there: CONFIG="-n --file=/etc/pulse/"00:51
T42<edp_17> In this there is no mention of audio_policy.conf, so I am not sure how and where to add this.00:52
T42<edp_17> This device has an S-pen (a built in stylus with a lots of functions) it works on /dev/input/event3. When I did a cat /dev/input/event3 and pulled out the pen and touched the screen I could see stuff on the console, so the device recognizes the actions with the pen on the screen. Do you have idea how I can utilize this stylus?00:58
T42<elros34> evdev_trace is more human friendly than cat for such a thing. I am not sure what functions you would like to have01:00
T42<edp_17> It is basically an enhanced stylus. I would be happy if could use it as a stylus to swipe, click on the screen. Plus when I pull out wake up the screen and similar things. However I think this can wait now it is more burning to get the rild working and some other things like vibra and bluetooth.01:03
T42<elros34> maybe if you change device node in droid-hal-device.conf it will work, depends on  event it generates. Vibra should be easy. Usually there is timed_output file in /sys to control it01:07
T42<edp_17> I don't have timed_output in /sys.01:08
T42<edp_17> or on the device.01:09
T42<elros34> do you have qt5-feedback-haptics* installed?01:10
T42<edp_17> only qt5-feedback-haptics-native-vibrator01:11
T42<edp_17> I just have too installed qt5-feedback-haptics-ffmemless but didn't make any difference.01:13
T42<elros34> you could try qt5-feedback-haptics-droid-vibrator, it will use android api. I doubt you have memless driver: you will see it in evdev_trace01:14
T42<edp_17> I have not found package qt5-feedback-haptics-droid-vibrator.01:16
r0kk3rzthe native one should be fine01:16
T42<elros34> I wonder why do you even have memless installed. DId you add it to droid-hal-version?01:16
T42<edp_17> I manually installed just a minute ago when we talked about the other package and seen it in the zypper se list. ๐Ÿ˜Š01:17
T42<edp_17> Now, it's removed.01:17
T42<edp_17> I only had the 'qt5-feedback-haptics-native-vibrator' installed by default.01:18
T42<elros34> there were also same changes is system/core because of new groups in sailfish but that was probably for  timed output.01:32
T42<edp_17> I've tried to reinstall qt5-feedback-haptics-native-vibrator and reboot, but did not help. I also checked the droid-hal-version-$DEVICE.spec file and it has the line: %define have_vibrator_native 101:39
T42<edp_17> There is something I don't understand regarding the wifi issue. We thought the device requires to enter the password after every reboot because the /system partition is not mounted when the wifi is starting. If this is the case, once the /system is mounted why the wifi doesn't just connect if I stop and restart the wifi radio? Plus if01:55
T42I reboot with wifi off, why does it requires me to enter the password rather than just connect to the stored network?01:55
T42<edp_17> It looks like the issue is, that the device doesn't remember the selected wifi network and the password.01:56
T42<edp_17> Do you have idea how can I force it to remember?01:56
r0kk3rzcheck the mac address isnt changing01:57
T42<elros34> it was always about mac, once you finally provided full log it was clear that it's not /system related because deffered_calls was called after /system is mounted.01:58
T42<elros34> about vibra: have you tried latest changes from mer-hybris/android_system_core?02:06
T42BellBaggins was added by: BellBaggins05:02
T42<Linda %lastname%> Fwd from Arvizu: Life without Mr Jerry is useless. All my entire life I have never dream to leave good life or have my personal money to take care of my family ๐Ÿ‘ช now Mr Jerry taught me how to proved for my kids and family and friends may God Almighty bless and Increase you with new people that you will help. Reach out to06:33
T42 him and be happy as I'm today06:33
T42<Linda %lastname%> ๐Ÿ‘‡06:33
T42<Linda %lastname%> Follow06:33
T42<Linda %lastname%>
riniguspiggz , @erfanoabdi: enrolling and testing both fail for me. enroll: ; test: .06:52
T42<adampigg> rinigus: check logcat07:00
T42<adampigg> oh, it is!07:01
T42<adampigg> rinigus, give output of lshal07:42
T42<adampigg> rinigus: what version is your keymaster service, and is it running?07:43
rinigus@adampigg: where do we get lshal?07:45
rinigus... found it07:46
rinigus@adampigg: lshal output -
T42<adampigg> rinigus: keymaster is 3, so dont need the fake_crypt service07:50
rinigus@adampigg: can you decrypt your reply? what should I do then?07:51
T42<adampigg> rinigus: i dont know :) best wait for @erfanoabdi  ....07:52
T42<adampigg> oh, did you have permission errors from "biometryd run"07:52
T42<adampigg> did you run it in 2 seesions, one with "biometryd run" and the other with "biometryd test โ€”config=config.json" ?07:53
rinigus@adampigg: nope.07:53
T42<adampigg> ok, in session 1, do biometryd run....07:53
T42<adampigg> then create a file config.json with the following07:54
rinigusbiometryd run fails. maybe I need to reboot it now.07:54
rinigusconfig.json I have already from logs07:54
T42<adampigg> ok07:54
rinigus@adampigg: all as root?07:58
T42<adampigg> yes07:58
rinigus@adampigg: no luck, still crash.
T42<adampigg> rinigus: thats fine, u need this next....08:07
T42<adampigg> rinigus:
rinigus@adampigg: thanks, will continue from here tonight08:14
*** mp107_ is now known as mp10708:20
T42<erfanoabdi> @rinigus [piggz , @erfanoabdi: enrolling and testing bot โ€ฆ], Error coming from fpc lib08:42
T42<erfanoabdi> It's very unclear on log08:42
T42<erfanoabdi> Run strace on fp hal pid and try to catch error08:42
T42<edp_17> @elros34: Can you let me know where you saw that in the log, please? (I would like to be able to check this next time. ๐Ÿ˜Š )08:46
T42<edp_17> About the mac, the /efs/wifi/ file always has the same mac address. Isn't this the wifi mac address? If so, it doesn't change (at least not in this file).08:47
T42<edp_17> About the vibra, can you let me know what to do to try the latest changes from mer-hybris/android_system_core, please?08:48
rinigus@erfanoabdi: thanks for instructions. I will update later tonight08:51
T42็Ž‰ๅฎธ %lastname% was added by: ็Ž‰ๅฎธ %lastname%09:05
r0kk3rz@edp_17 check what connman says is the mac10:19
rinigus@erfanoabdi: just to be clear, I need to attach `strace -p` to quick test resulted in - rather limited info. nothing crashed over there.10:20
rinigusrather limited info though. did it while making `test`10:20
riniguspiggz ^10:21
T42<erfanoabdi> @rinigus [@erfanoabdi: just to be clear, I need to attac โ€ฆ], No run strace in Android side10:21
T42<erfanoabdi> Use this10:22
T42<elros34> @edp_17 I don't remember exactly where, but wifiloader (or whether the service name was) from ini*rc is started by droid-hal-init after partitions are mounted. Logs had something about deferred calls10:39
T42<edp_17> r0kk3rz: How can I check that connman thing? (Sorry)10:39
T42<edp_17> @elros34: yes, it was the init.wifi.rc and there is a: "# Run deferred initcalls of builtin kernel modules (bcmdhd)"10:41
T42<edp_17> service wifiloader /system/bin/wifiloader10:41
T42<edp_17> Thanks, I try to check the logs again to see these in there.10:41
T42<elros34> if you search in source wifiloader then you will see the only thing it do ( in your case) is read /proc/deferred_initcalls.10:42
T42<elros34> Also you already know how to check MAC via ifconfig10:44
T42<elros34> If I understand it correctly the config option I told you to enable add some function in driver which in theory read that mac from /efs partition so you could add some printk to it to check what is goingo on there10:46
T42<edp_17> Are you referring to the CONFIG_BCMDHD_FW_PATH and CONFIG_BCMDHD_NVRAM_PATH options?10:51
T42<elros34> no, something like CONFIG*READ*10:53
T42<elros34> or maybe it was cflag added to Makefile10:55
T42<edp_17> I don't remember that READ thing but we tried the other one:
T42<elros34> right, so I mix up it10:58
T42<edp_17> I am not sure that I added it correctly.11:03
T42<edp_17> Original: EXTRA_CFLAGS += $(DHDCFLAGS) -DDHD_DEBUG11:03
T42<edp_17> plus there are some other EXTRA_CFLAGS += ... lines after this11:03
T42<edp_17> This is the drivers/net/wireless/bcmdhd4358/Makefile by the way.11:04
T42<elros34> there should be .*cmd file there used to built module which contains all arguments used to build it11:05
T42<edp_17> Plus I have reverted the CONFIG_BCMDHD_FW_PATH and CONFIG_BCMDHD_NVRAM_PATH to they original values from /system/etc/wifi/11:06
T42<adampigg> @erfanoabdi my head is hurting, but i finally got soemthing to link using your code imported into a project, and all this hybris linrary rediration etc!11:06
T42<edp_17> @elros34 : Where should be that .*cmd file?11:08
rinigus@erfanoabdi: thanks, will do11:08
T42<erfanoabdi> @adampigg [@erfanoabdi my head is hurting, but i finally โ€ฆ], Noice๐Ÿ‘11:08
T42<elros34> @edp_17 everywhere in kernel but your is in driver directory11:09
T42<adampigg> @erfanoabdi [Noice๐Ÿ‘], i procrastinated a lot about which way to tackle it, and decided to do as you suggested! .... im not used to code written this way though!11:10
T42<edp_17> @elros34: I see, thanks.11:11
T42<edp_17> In the meantime I have asked help from some developers from xda to compile the wifi driver as module.11:12
T42<edp_17> Some responded and even provided some examples but I cannot work out how to implement into my case.11:12
T42<edp_17> Here it is:11:13
T42<edp_17> "Yeah, I know a potential solution to this problem. Linux kernel provides an API to use the kernel symbols in the modules, but not vice versa (however some trick might allow access symbols inside modules as well)."11:13
T42<edp_17> "The idea comes from Samsung's "param" module codes used in a certain phone models:"11:13
T42<edp_17> " Here are some examples how to use this API:"11:13
T42<edp_17> " This will not work, if the stuff in kernel calls the imported function before you load the module. "11:14
T42<edp_17> Unfortunately it sounds a bit Greek (or Mandarin) to me.11:14
T42<edp_17> However be able to put the driver into module probably would solve this issue.11:15
T42<elros34> doubt it11:16
T42<edp_17> Why? It helped on other devices.11:17
T42<elros34> I could be wrong but I can not see how it could help for your driver which is already init with a great delay11:19
T42<edp_17> I don't know but on hammerhead there was the same issue when the wifi driver was built in and its gone when it was loaded as a module. However that could be an exception that makes the rule stronger. ๐Ÿ˜Š11:20
T42<edp_17> I have tried to find that .*cmd file in drivers and its subfolders then with locate but didn't found any.11:23
T42<elros34> right android builds everything in out/11:24
T42<edp_17> Thanks. Is this .*cmd file only generated when I set the CONFIG_BCM4358=m in defconfig?11:27
T42<edp_17> Oh, or is the dhd.o.cmd is the one in that folder that I am after?11:29
T42<edp_17> @elros34: I am not sure whether I need to use CONFIG_BCMDHD_PCIE in defconfig. However if I switch this off, I get some other errors when making hybris-hal.12:03
T42<edp_17> @elros34: How can I add the mentioned printk into the driver (I mean into which file)? And what should I display with it? Thanks.12:17
T42<edp_17> After a reboot the ifconfig -a shows a different mac address. Once I turn the wifi on it gets the one from /efs/wifi/.mac.info12:47
T42<hacker12455> Could someone make an OBS account for me?12:47
T42<edp_17> @hacker12455 : you need to send a message to lbt stating your wanted user name and email address.12:48
T42<hacker12455> On IRC right?12:49
T42<hacker12455> Or is he on telegram too?12:49
lbtnope but I'm around now12:49
T42<edp_17> @elros34: After a reboot, before turning the wifi on, I have tried to assign the mac with 'ifconfig wlan0 hw ether 90:B6:86:4C:CA:B6' but didn't make any effect. ๐Ÿ˜”12:50
T42<edp_17> lbt: Where can I find info about how to create/configure/use my own repo on OBS? Thanks.12:51
T42<hacker12455> lbt: Username and email for the OBS account: hacker12455, kacper12455@gmail.com13:01
T42MrBam was added by: MrBam14:58
T42<Verevka86> How do I register and add my device?15:13
T42<edp_17> @Verevka86: Thanks, but that is 'only' a page where we can mark what's working and not on a device. What I would like to know was how add/register a new device (like the S2) for being able to do OTA updates. In the hadk there is some information abut it but that is not complete (at least for me).15:19
T42<Verevka86> @edp_17 [@Verevka86: Thanks, but that is 'only' a page โ€ฆ], I ask for myself to add my device ๐Ÿ˜15:20
T42<edp_17> Oh, sorry! ๐Ÿ˜15:21
T42<MrBam> (Document)
T42<Verevka86> @adampigg
T42<Verevka86>  How to add this?  I have keymaster 3.0 and on ubuntu touch this works fine.15:29
T42<adampigg> @Verevka86 [@adampigg โ€ฆ], Its not ready, stop being nosey :D15:30
T42<Verevka86> @adampigg [Its not ready, stop being nosey :D], Ok ๐Ÿ˜‚15:31
T42<MrBam> (Document)
riniguspiggz, @erfanoabdi: still crashing, after making /data/system/users/0/fpdata folder (that made it go further)18:35
riniguslogcat: strace:
piggz@erfanoabdi could it be the late_start issue?18:38
T42<erfanoabdi> @piggz [@erfanoabdi could it be the late_start issue?], Yeah18:38
piggzrinigus: you could try rebuilding hal with
piggzor, i can send you my droid-hal-init to try, if you just want to change the .rc18:40
riniguspiggz: send the init, please18:42
T42<adampigg> (Document)
piggzrinigus: ^^18:45
riniguspiggz: ohh, I though its just init script, not full init18:58
riniguswhat's the late_start issue? can I somehow emulate starting later manually on device?18:59
riniguspiggz, @erfanoabdi ^18:59
T42<erfanoabdi> There's a setprop u can do manually19:01
T42<erfanoabdi> To trigger late start19:01
rinigusnote that I am not on mediatek19:02
rinigus(reading the patch)19:02
rinigus@erfanoabdi: so, which prop is that? and when I should do it in respect to testing? on what's failing in our case?19:03
rinigus@erfanoabdi: `setprop droid.late_start trigger_late_start` seems to be not doing anything for me. its already set to that value anyway19:29
T42<erfanoabdi> @rinigus [@erfanoabdi: `setprop droid.late_start trigger โ€ฆ], I just checked again log19:57
T42<erfanoabdi> There's really nothing19:57
T42<erfanoabdi> If your fp hal is opensource or u have any prop to make it give us more info in logs it's gonna be helpful19:57
T42<erfanoabdi> Strace didn't give much info as well19:57
T42<erfanoabdi> As far as i can saw in log it's connected to fp hidl19:57
T42<erfanoabdi> Set active dir worked19:57
T42<erfanoabdi> But can't clear templates19:57
T42<erfanoabdi> This is very weird!19:57
rinigus@erfanoabdi: it should be this: . I'm on sony xperia xz219:58
T42<erfanoabdi> Rebuild your hal with some more debugging logs enabled19:59
rinigus@erfanoabdi: as it's my main device, I am reluctant to do so.20:05
rinigusthanks for tips, let me think about it20:05
T42<erfanoabdi> ๐Ÿ˜‰20:06
rinigus@erfanoabdi & piggz: all this fp project -
T42<erfanoabdi> @rinigus [@erfanoabdi & piggz: all this fp project - htt โ€ฆ], lol20:27
T42<MrBam> @MrBam [<reply to media>], so anyone can help me  ?20:28

Generated by 2.17.1 by Marius Gedminas - find it at!