ChanServ changed the topic of #msm8937-mainline to: Boot Linux on your MSM8917/37/40 and QM215 mobile! | GitHub: https://github.com/msm89x7-mainline | Logs: https://oftc.irclog.whitequark.org/msm8937-mainline | Bridged to #msm8937-mainline:kde.org on Matrix
incogninto1-1[m] has joined #msm8937-mainline
<incogninto1-1[m]> Hellos
<incogninto1-1[m]> I am having an issue with the Moto G5s backlight at startup
<barni2000[m]> montana
<barni2000[m]> which panel?
<barni2000[m]> 2 of my montanas is working fine
<barni2000[m]> can you describe the issue, montana is using pmi8950_wled for backlight
<incogninto1-1[m]> It's good from boot-up to LK2nd
<incogninto1-1[m]> But as soon as Linux take over it gets so dark even the light from my lamp is too much
<incogninto1-1[m]> I tried to change the brightness and I got no change
<barni2000[m]> it can be the issue in the generated panel driver there were similar issues with other motos
<barni2000[m]> maybe --dumb-dcs param in panel generator config will fix it
<barni2000[m]> can you tell me wich panel do you have?
<barni2000[m]> s/wich/which/
<incogninto1-1[m]> ?
<incogninto1-1[m]> Do I have to take appart the device?
<barni2000[m]> no
<barni2000[m]> check the loaded modules
<barni2000[m]> lsmod | grep panel
<incogninto1-1[m]> ok
<incogninto1-1[m]> It's a nt35596_inx
<incogninto1-1[m]> <barni2000[m]> "maybe --dumb-dcs param in..." <- How do I do that?
<barni2000[m]> i will generate you the driver
<incogninto1-1[m]> Thank!
<barni2000[m]> i have tianma btw panel_motorola_montana_r63350_tianma 12288 0
<incogninto1-1[m]> Lemme see...
<incogninto1-1[m]> MSM8916 defconfig?
<incogninto1-1[m]> Just to make sure
<barni2000[m]> no
<barni2000[m]> get the config from pmaports
<incogninto1-1[m]> Should I just rip out the config from my device?
<incogninto1-1[m]> Ah
<incogninto1-1[m]> It's building...
<barni2000[m]> on my T560 with 6300u it takes about 30 minutes
<incogninto1-1[m]> aaand it's done!
<barni2000[m]> btw it would be enough only just build the module, sorry i have forgot to say that
<incogninto1-1[m]> I decided to build the whole kernel and just rip out only the module lol
<barni2000[m]> don't forget to run mkinitfs
<barni2000[m]> because panel drivers are in the intfs
<barni2000[m]> s/intfs/initfs/
<incogninto1-1[m]> Aight. Fresh lil Initramfs
<incogninto1-1[m]> Time for a reboot
<incogninto1-1[m]> Good news the screen is lit
<incogninto1-1[m]> Bad news the screen is black
<barni2000[m]> can you write the process how did you update the module
<barni2000[m]> * the module?
<incogninto1-1[m]> So I built the kernel
<incogninto1-1[m]> Copied the nt panel KO file
<incogninto1-1[m]> Put it on my phone
<incogninto1-1[m]> and replaced the KO in the lib/modules
<barni2000[m]> have you replace the source in the kernel?
<incogninto1-1[m]> Yes
<incogninto1-1[m]> I copied the source you gave me to the c source of the nt panel
<barni2000[m]> so git diff shows you the differences
<incogninto1-1[m]> Here's the output (patch)
<incogninto1-1[m]> "diff --git a/drivers/gpu/drm/panel/msm89x7-generated/panel-motorola-montana-nt35596-inx.c b/drivers/gpu/drm/panel/msm89x7-generated/panel-motorola-montana-nt35596-inx.c... (full message at <https://matrix.org/oftc/media/v1/media/download/AUCEmtLF0k5oa9GcZyL5gijYsKRvlWRZY3d_IlZgYeA54VZvOw17ZSRSW_9PHVGSOifMvuEawVXLp-PCdPjO1hpCeXJY289gAG1hdHJpeC5vcmcvYXVwQWRYTGdtaWdWTnhhbXZmRVlBRFhU>)
<incogninto1-1[m]> I formated it wrong
<barni2000[m]> "```"
<barni2000[m]> incogninto1-1[m]: have you executed `sudo mkinitfs` after this?
<incogninto1-1[m]> Yes
<barni2000[m]> your phone is cursed :D
<incogninto1-1[m]> I have the output if necessary
<barni2000[m]> check dmesg for errors
<incogninto1-1[m]> That might explain something
<incogninto1-1[m]> [ 4.479203] panel_motorola_montana_nt35596_inx: version magic '6.14.0-msm89x7+ SMP preempt mod_unload aarch64' should be '6.14.0-msm89x7 SMP preempt mod_unload aarch64'
<barni2000[m]> update the whole kernel
<incogninto1-1[m]> noooooooo
<incogninto1-1[m]> fine
<incogninto1-1[m]> Do I just cpy the built source of the kernel?
<incogninto1-1[m]> Because it's quite big
<barni2000[m]> no
<barni2000[m]> pmbootstrap build --envkernel linux-postmarketos-qcom-msm89x7
<barni2000[m]> pmbootstrap sideload --install-key linux-postmarketos-qcom-msm89x7
<incogninto1-1[m]> I didn't use pmaports
<incogninto1-1[m]> I have the git
<barni2000[m]> you can copy only the modules and the kernel image
<incogninto1-1[m]> I should probaby learn how to use it
<incogninto1-1[m]> s/probaby/probably/
<incogninto1-1[m]> I never used it before
<incogninto1-1[m]> Aaand now I bricked my instalation
<barni2000[m]> how?
<incogninto1-1[m]> I couldn't select to compress the kernel into a vmlinuz file instead of vmlinux
<incogninto1-1[m]> So I decided to just GZip the VMLinux
<incogninto1-1[m]> Big mistakre
<incogninto1-1[m]> * Big mistake
<incogninto1-1[m]> Oh well. I'm just gonna rebootstrap the ting
<incogninto1-1[m]> s/ting/thing/
<barni2000[m]> you can use fastboot boot vmlinuz-dtb initramfs
funderscore has joined #msm8937-mainline
<incogninto1-1[m]> Aight I reinstalled it and now it works
<incogninto1-1[m]> But how do I modify and build the kernel before installing?
<incogninto1-1[m]> Using pmaports?
<barni2000[m]> pmbootstrap chroot -r
<incogninto1-1[m]> now, as Gordon Ramsay said: Where's the sauce?
<barni2000[m]> Maybe this help
<barni2000[m]> if panel is working i will update the kernel in pmaports
funderscore is now known as f_|DSR
jugsonany[m] has joined #msm8937-mainline
<M0xCAFEBABE[m]> barni2000: have u tried enabling audio on ugglite?
<barni2000[m]> It is enabled
<M0xCAFEBABE[m]> <barni2000[m]> "It is enabled" <- really..? i didn't even see audio related stuff on ugglite dts
<M0xCAFEBABE[m]> * even see any audio related
<barni2000[m]> Wait let me check maybe i have forgot to copy paste it from ugg
<M0xCAFEBABE[m]> and, no sound card comes up
<barni2000[m]> Yeah it is missing
<barni2000[m]> I have not added because touch is not working on my devices because of sh** replacement displays
<barni2000[m]> All my 3 ugglite is wrong
<M0xCAFEBABE[m]> is that our latest alsa ucm conf?
<barni2000[m]> yes
<barni2000[m]> i will add audio for ugglite next release, modem on msm8917, maybe venus for msm8917, maybe smgr, and i can try cherry-pick ipa2 lite for 8940
<barni2000[m]> and i should finalize initial sdm439 support
<M0xCAFEBABE[m]> do we support bluetooth now?
<barni2000[m]> bluetooth was always working
<M0xCAFEBABE[m]> cool
<barni2000[m]> if wifi is working bluetooth also works
<barni2000[m]> this is the current status of ugglite https://wiki.postmarketos.org/wiki/Xiaomi_Redmi_Note_5A_(xiaomi-ugglite)
<M0xCAFEBABE[m]> mhh, why is sdcard broken?
<M0xCAFEBABE[m]> btw, is there any device with IR working right now?
<M0xCAFEBABE[m]> and which xiaomi have camera working right now?
<barni2000[m]> it was fixed
<barni2000[m]> <M0xCAFEBABE[m]> "btw, is there any device with IR..." <- land
<barni2000[m]> <M0xCAFEBABE[m]> "and which xiaomi have camera..." <- land
<barni2000[m]> ugglite have s5k3l8 so it can be enabled easily
f_|DSR has quit [Remote host closed the connection]
f_|DSR has joined #msm8937-mainline
f_|DSR is now known as funderscore
funderscore is now known as f_|DSR
f_|DSR has quit [Remote host closed the connection]
f_|DSR has joined #msm8937-mainline
f_|DSR is now known as funderscore
funderscore is now known as f_|DSR