T42 | <ĺáćé> Hello. We ported SailfishOS for Samsung Galaxy J1 (LTE, Exynos 3475), and we have some problems. | 10:47 |
---|---|---|
T42 | <ĺáćé> 1. Pulseaudio is not working, sound card exists in /proc/asound/cards | 10:47 |
T42 | <ĺáćé> pulseaudio -vvv output errors: https://bsd.ac/s6p6imx | 10:47 |
T42 | <ĺáćé> pulseaudio --system output error: https://bsd.ac/a7drdej | 10:47 |
T42 | <ĺáćé> cat /proc/asound/cards output: https://bsd.ac/7lw3n4b | 10:47 |
T42 | <ĺáćé> 2. Sailjail think, that apps starting from root, but they starts from defaultuser. | 10:47 |
T42 | <ĺáćé> On FAQ, HADK HOT, HADK and Internet I couldn't find solution to these errors, for pulseaudio there was no solution, or total ignore. How I can fix these errors? | 10:47 |
T42 | <elros34> please always include full command with shell prompt in paste so its clear what and how you start because looks like you dont start pulseaudio correctly and I don';t want to guess it | 11:04 |
T42 | <elros34> did you stop pulseaudio service first? | 11:06 |
T42 | <ĺáćé> 1. ~ # pulseaudio -vvv | 11:06 |
T42 | <ĺáćé> 2. ~ # pulseaudio --system | 11:06 |
T42 | <ĺáćé> | 11:06 |
T42 | <ĺáćé> Service is stopped, and do not starting via systecmctl (re @elros34: please always includ...) | 11:06 |
T42 | <elros34> see /usr/lib/systemd/user/pulseaudio.service how this should be started, mind env variables sources form file too | 11:07 |
T42 | <elros34> from* | 11:07 |
T42 | <ĺáćé> https://bsd.ac/3l6tb33 | 11:11 |
T42 | <ĺáćé> service file | 11:11 |
T42 | <ĺáćé> DBus is working fine, and what is $CONFIG variable? | 11:11 |
T42 | <ĺáćé> HYBRIS_USE_VENDOR_NAMESPACE=yes | 11:12 |
T42 | <ĺáćé> CONFIG="-n --file=/etc/pulse/arm_droid_default.pa" | 11:12 |
T42 | <ĺáćé> | 11:12 |
T42 | <ĺáćé> Оh, I find it | 11:12 |
T42 | <elros34> $CONFIG is defined in ENvironmentFile | 11:12 |
T42 | <ĺáćé> I need to edit $CONFIG file? | 11:12 |
T42 | <elros34> whatever method you prefer but I meant that you can't just type pulseaudio -v and expect it to work. You need also these arguments and env ^ | 11:14 |
T42 | <ĺáćé> pulseaudio -v $CONFIG, right? | 11:15 |
T42 | <elros34> + env variable you posted you posted | 11:15 |
T42 | <ĺáćé> https://bsd.ac/amuawb8 | 11:22 |
T42 | <elros34> from your own log: "W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified)." | 11:23 |
T42 | <ĺáćé> Оh, I forgot about it | 11:24 |
T42 | <elros34> start it as user and add HYBRIS_USE_VENDOR_NAMESPACE=yes otherwise pulseaudio will not be aware of it | 11:24 |
T42 | <ĺáćé> https://bsd.ac/1bdnmng this is with --system | 11:24 |
T42 | <ĺáćé> Окay | 11:24 |
T42 | <ĺáćé> https://bsd.ac/ixxylb2 | 11:33 |
T42 | <ĺáćé> It can't find sound card, but in /proc it exists.. | 11:33 |
T42 | <elros34> are you connected with telnet? | 11:33 |
T42 | <ĺáćé> Yes (re @elros34: are you connected wi...) | 11:34 |
T42 | <elros34> can't you use ssh? | 11:34 |
T42 | <ĺáćé> I will try | 11:34 |
T42 | <elros34> and please don't include this useless commands and outputs from previous attempts | 11:35 |
T42 | <ĺáćé> Okay, but output from pulseaudio do not changed | 11:36 |
T42 | <elros34> I do not believe | 11:36 |
T42 | <elros34> show me | 11:36 |
T42 | <ĺáćé> http://temp.sh/vAczC/pa.log | 11:38 |
T42 | <elros34> oh its very hard to debug such a simple thing if I have to repeat same things again. ssh, as user show full comand and shell prompt and pastebin everything | 11:40 |
T42 | <ĺáćé> I ran this from SSH.. (re @elros34: oh its very hard to ...) | 11:41 |
T42 | <elros34> how can I know this? | 11:41 |
T42 | <ĺáćé> Full command: [defaultuser@localhost ~]$ HYBRIS_USE_VENDOR_NAMESPACE=yes pulseaudio -v -n --fi | 11:41 |
T42 | <ĺáćé> le=/etc/pulse/arm_droid_default.pa | 11:41 |
T42 | <elros34> did you mask pulseaudio user service? add more -v and paste /system/etc/audio_policy.conf | 11:44 |
T42 | <ĺáćé> audio_policy: https://bsd.ac/tramnuq | 11:47 |
T42 | <ĺáćé> more -vvv: https://bsd.ac/6x6ebbg | 11:47 |
T42 | <ĺáćé> I do not masked it | 11:47 |
T42 | <elros34> then do it | 11:48 |
T42 | <elros34> no idea what it is but try removing/commenting out " tms {}" from audio_policy.conf | 11:52 |
T42 | <ĺáćé> Now I have another error | 12:04 |
T42 | <ĺáćé> TMS error gone away | 12:04 |
T42 | <ĺáćé> https://bsd.ac/vtx00zo | 12:04 |
T42 | <ĺáćé> Can't parse input device | 12:04 |
T42 | <elros34> remove it too | 12:06 |
T42 | <ĺáćé> Окаy | 12:06 |
T42 | <elros34> maybe just that line "devices AUDIO_DEVICE_IN_PLAYBACK" | 12:07 |
T42 | <ĺáćé> devices AUDIO_DEVICE_OUT_ALL_A2DP ? | 12:09 |
T42 | <ĺáćé> In a2dp section? | 12:09 |
T42 | <elros34> what about it? does it also complain? | 12:09 |
T42 | <ĺáćé> Oh, I find right section, edited, rebooting now | 12:11 |
T42 | <elros34> you don't have, just restart pulse audio to confirm whether it works | 12:11 |
T42 | <ĺáćé> I'm editing from TWRP | 12:12 |
T42 | <elros34> why? | 12:12 |
T42 | <ĺáćé> vim when I tried to :wq! said no write access (editing from root) | 12:12 |
T42 | <elros34> because system partition is mounted read only and this changes are not a nice way to solve problem, you could do 'mount -o remount,rw /system' or something like that | 12:13 |
T42 | <ĺáćé> Yes, this solved the problem, thank you! | 12:16 |
T42 | <elros34> you may copy this audiopolicy to /etc/ and add config=/path/to/policy to pulseaudo arguments but I do not remember whether this is correct. If not you may use systemd and bind mount /etc/audiopolicy* to /system one | 12:20 |
T42 | <elros34> or if you do not plan to release this sailfish image for others just edit /system every time | 12:20 |
T42 | <NexusWorld99> thanks (re @elros34: you may copy this au...) | 12:21 |
T42 | <elros34> for sailjail issue I guess this is probably some missing kernel change. What kernel do you use? | 12:22 |
T42 | <elros34> did you enable all these CONFIG_*_NS? | 12:22 |
T42 | <NexusWorld99> without user_ns (re @elros34: did you enable all t...) | 12:23 |
T42 | <elros34> worth a try | 12:24 |
T42 | <ĺáćé> We enabled it now, and trying to build it, but it has tonns errors of type conversion (re @NexusWorld99: without user_ns) | 12:24 |
T42 | <elros34> errors or warnings? | 12:24 |
T42 | <ĺáćé> From KNOX_VPN (kuid_t to uid_t or to int) | 12:24 |
T42 | <ĺáćé> Errors | 12:25 |
T42 | <NexusWorld99> errors | 12:25 |
T42 | <ĺáćé> Not warning | 12:25 |
T42 | <ĺáćé> Not warnings (edited) | 12:25 |
T42 | <elros34> KNOX rings some bells, show theese errors | 12:25 |
T42 | <NexusWorld99> many specific exнnos things cause errors (re @elros34: KNOX rings some bell...) | 12:25 |
T42 | <NexusWorld99> many specific exynos things cause errors (edited) (re @elros34: KNOX rings some bell...) | 12:25 |
T42 | <NexusWorld99> when we enable user_ns | 12:26 |
T42 | <NexusWorld99> By default it is in =n | 12:26 |
T42 | <ĺáćé> Paste some errors to bsd.ac and show here | 12:27 |
T42 | <elros34> https://github.com/edp17/android_kernel_samsung_exynos5433/commits/cm-14.1-treltexx/net/netfilter/xt_connmark.c | 12:27 |
T42 | <ĺáćé> @NexusWorld99 | 12:28 |
T42 | <ĺáćé> try to apply and let go compile again | 12:28 |
T42 | <elros34> maybe this one too https://github.com/edp17/android_kernel_samsung_exynos5433/commit/514a00aec9452cb8a8ee98fde54b32f4e5f61f2e. Anyway edp17 repos are full of exynos sources and sailfish related changes you may want to use | 12:32 |
T42 | <ĺáćé> @NexusWorld99 | 12:32 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!