00:08
pere has joined #maemo-leste
00:49
uvos__ has quit [Ping timeout: 276 seconds]
01:18
maemish_ has joined #maemo-leste
01:19
nmdv has joined #maemo-leste
02:07
nmdv has quit [Ping timeout: 255 seconds]
02:27
elastic_dog has quit [Read error: Connection reset by peer]
02:28
elastic_dog has joined #maemo-leste
03:03
nmdv has joined #maemo-leste
03:14
Danct12 has joined #maemo-leste
03:27
maemish_ has quit [Quit: Connection closed for inactivity]
03:46
nmdv has quit [Ping timeout: 255 seconds]
04:19
xmn has quit [Ping timeout: 268 seconds]
04:52
maemish_ has joined #maemo-leste
05:29
macros_ has quit [Ping timeout: 256 seconds]
05:31
macros_ has joined #maemo-leste
06:01
joerg has quit [Ping timeout: 268 seconds]
06:02
joerg has joined #maemo-leste
06:09
Twig has joined #maemo-leste
06:53
ceene has joined #maemo-leste
06:57
maemish_ has quit [Quit: Connection closed for inactivity]
08:05
rafael2k has joined #maemo-leste
08:07
Twig has quit [Remote host closed the connection]
08:37
pere has quit [Ping timeout: 265 seconds]
09:00
M1peter10[m] has quit [Quit: You have been kicked for being idle]
09:13
pere has joined #maemo-leste
09:22
uvos__ has joined #maemo-leste
09:45
k1r1t0 has joined #maemo-leste
11:54
Danct12 has quit [Quit: WeeChat 3.8]
12:51
xmn has joined #maemo-leste
13:01
arno11 has joined #maemo-leste
13:03
<
arno11 >
freemangordon: the 4 pkg update from yesterday evening increase power consumption of 50mA
13:04
<
arno11 >
I've triple checked and tested from fresh install twice
13:05
<
arno11 >
otherwise idle is now 47mA with overclock :)
13:06
<
arno11 >
and without the 4 pkg
13:07
<
arno11 >
no more poweroff issue when disabling probs modules
13:09
<
arno11 >
back in 2 hours
13:13
arno11 has left #maemo-leste [#maemo-leste]
13:35
<
freemangordon >
hmm, I saw similar on d4
13:35
<
freemangordon >
(increased power usage)
13:36
<
freemangordon >
will try to downgrade Xorg
13:53
<
Wizzup >
maybe noise on dbus?
13:53
<
Wizzup >
not sure how xorg can cause it
13:53
<
freemangordon >
but why?
13:55
<
Wizzup >
maybe X has access to more/less and does more/less? no idea...
13:56
<
Wizzup >
maybe compare X logs or something
13:56
<
Wizzup >
or maybe still some profile sourcing thing
13:56
<
Wizzup >
(not sure)
13:56
<
freemangordon >
profile is sourced correctly
13:56
<
freemangordon >
will try to start xorg as root
13:56
<
freemangordon >
to see if it will make any difference
13:57
<
sicelo >
47mA? wow!
13:58
<
sicelo >
sounds news-post-worthy ... tmo people would love to hear such news. may generate a bit more interest in Leste too
13:58
<
Wizzup >
it is, but it is not yet in any leste-config pkg
14:06
<
freemangordon >
Wizzup: confirmed, it is xorg running as user :(
14:09
<
Wizzup >
maybe check if xorg has additional fds open or something
14:09
<
Wizzup >
or maybe check if their env is different
14:09
<
Wizzup >
I feel like this might be some pvr option not being read
14:09
<
Wizzup >
maybe pvr xorg cannot read /etc/powervr etc
14:10
<
freemangordon >
it is empty
14:11
<
freemangordon >
and I would expect errors in the log
14:12
<
Wizzup >
maybe strace?
14:12
<
freemangordon >
of Xorg?!?
14:13
<
freemangordon >
who will read that?
14:13
<
freemangordon >
not me
14:13
* freemangordon
hides :)
14:13
<
Wizzup >
I don't think it does a lot when screen is off
14:13
<
Wizzup >
but maybe I am wrong
14:13
<
freemangordon >
hmm
14:13
<
freemangordon >
I'd rather attach gdb
14:14
<
Wizzup >
for me, on my d4, currently, only upower takes about 8% cpu
14:14
<
Wizzup >
and udev 5%
14:14
<
Wizzup >
but that's probably just the usual full battery charging noise
14:14
<
freemangordon >
is it on charger?
14:14
<
Wizzup >
it was, yes
14:15
<
Wizzup >
so I checked, Xorg does nothing with screen off
14:15
<
freemangordon >
well, with Xorg running as root, avg current should be about 50mA
14:15
<
Wizzup >
it's just in epoll_wait(3, ...)
14:15
<
Wizzup >
but mine runs as root still
14:15
<
freemangordon >
you attach strace?
14:16
<
Wizzup >
weird, I am fully upgraded, but my xorg does not run as user
14:16
* Wizzup
double checks repos
14:16
<
freemangordon >
how's that?
14:16
<
Wizzup >
well, I am on chimaera-devel
14:16
<
Wizzup >
and X runs as root
14:16
<
Wizzup >
well I have one day uptime
14:16
<
Wizzup >
let me reboot
14:17
<
Wizzup >
(logging a bit of strace first)
14:17
<
Wizzup >
does it also use more cpu when screen is off?
14:17
<
Wizzup >
or, more power, at least
14:17
<
freemangordon >
cpu is idle
14:18
<
freemangordon >
maybe elogind behaves and opens some button
14:18
<
freemangordon >
wait
14:18
<
freemangordon >
Xorg runs as root here too
14:19
<
Wizzup >
was it about xinit running as user then?
14:19
<
freemangordon >
wait
14:19
<
freemangordon >
I edited xorg script
14:19
<
freemangordon >
lemme check what is in it
14:22
<
freemangordon >
ok, I don;t get that:
14:22
<
freemangordon >
user 2534 2522 0 16:17 tty7 00:00:00 /bin/sh /usr/bin/startx -- -keeptty -logverbose 1 -noreset -s 0 -core
14:22
<
freemangordon >
user 2564 2534 0 16:17 tty7 00:00:00 xinit /etc/X11/xinit/xinitrc -- /usr/bin/X :0 -keeptty -logverbose 1 -noreset -s 0 -core vt7 -keeptty -auth /tmp/serverauth.r2yeDGTndy
14:22
<
freemangordon >
root 2565 2564 1 16:17 tty7 00:00:05 /usr/lib/xorg/Xorg :0 -keeptty -logverbose 1 -noreset -s 0 -core vt7 -keeptty -auth /tmp/serverauth.r2yeDGTndy
14:23
<
freemangordon >
why Xorg runs as root?
14:24
<
freemangordon >
maybe it is normal, dunno
14:24
<
Wizzup >
I don't think it is normal
14:25
<
Wizzup >
when I type 'startx' as user on my laptop it runs as my user
14:25
<
freemangordon >
on my ubuntu 18 it runs as root too
14:25
<
Wizzup >
well, X, not Xorg
14:25
<
Wizzup >
ubuntu 18 is old, that's normal there
14:25
<
Wizzup >
merlijn 3424 0.0 0.0 4220 1672 tty1 S+ 12:42 0:00 xinit /home/merlijn/.xinitrc -- /etc/
14:25
<
Wizzup >
11/xinit/xserverrc :0 -auth /tmp/serverauth.9uXoWqfL33
14:25
<
Wizzup >
merlijn 3425 2.0 0.3 1048196 58628 tty1 Sl 12:42 3:25 /usr/bin/X -nolisten tcp -keeptty :0 -auth /tmp/serverauth.9uXoWqfL33 vt1
14:26
<
freemangordon >
lemme check xserverrc
14:26
<
freemangordon >
but those are whatever comes from the repo
14:27
* freemangordon
is confused
14:27
<
freemangordon >
user 2505 2504 0 14:26 tty7 00:00:00 /usr/lib/xorg/Xorg :0 -keeptty -logverbose 1 -noreset -s 0 -core vt7 -keeptty -auth /tmp/serverauth.SGsW4YyKuo
14:27
<
freemangordon >
this is VM
14:28
<
freemangordon >
Wizzup: what the?
14:29
<
freemangordon >
Wizzup: seems it has suid bit set:
14:30
<
freemangordon >
-rwsr-sr-x 1 root root 9796 Mar 12 20:01 Xorg.wrap
14:30
<
freemangordon >
but, it is the same on the VM, why it is different?
14:32
<
Wizzup >
what is Xorg.wrap ?
14:33
<
freemangordon >
a binary
14:34
<
freemangordon >
oh, wait
14:34
<
freemangordon >
I think I found it
14:34
<
freemangordon >
cat /etc/X11/Xwrapper.config
14:34
<
freemangordon >
gives root on d4 and user in the VM
14:34
<
freemangordon >
what the?
14:35
<
freemangordon >
-rw-r--r-- 1 root root 630 May 16 2021 /etc/X11/Xwrapper.config
14:36
<
freemangordon >
oh, scratch that
14:36
<
freemangordon >
my fault
14:36
<
freemangordon >
both have allowed_users=console
14:39
<
Wizzup >
did you find it, or not?
14:39
<
freemangordon >
lemme check Xorg.wrap code
14:41
<
Wizzup >
fwiw I don't have Xorg.wrap on my laptop
14:41
<
freemangordon >
bt in VM there is
14:41
<
freemangordon >
*but
14:41
<
freemangordon >
and it still runs as user
14:42
<
Wizzup >
|-dsme---dsme-server-+-alarmd
14:42
<
Wizzup >
| |-autologin---startx---xinit-+-Xorg---{Xorg}
14:42
<
Wizzup >
| | `-Xsession-post-+-maemo-xinput-so---2*[{maemo-xinput-so}]
14:43
<
Wizzup >
freemangordon: doesn't dsmetool start autologin as root, or am I confused
14:44
<
Wizzup >
(I don't know much about autologin)
14:44
<
Wizzup >
yeah, autologin runs as root, is that intended? (could be)
14:44
<
uvos__ >
autologin starts the session
14:44
<
uvos__ >
it must be root
14:44
<
Wizzup >
startx seems to run at user as least
14:45
<
Wizzup >
freemangordon: what even runs this wrap stuff?
14:45
<
uvos__ >
this dose some magic to make xorg able to run as user
14:46
<
uvos__ >
its setuid and gives it some resources like keyboard and mouse devies or some sutch
14:47
<
freemangordon >
wait, I think I have an idea
14:47
<
Wizzup >
xinit is not setuit
14:47
<
Wizzup >
at least on my d4 it is not
14:47
<
uvos__ >
not xinit itself
14:47
<
freemangordon >
maybe DRM_IOCTL_MODE_GETRESOURCES fails on omap
14:48
<
Wizzup >
where do these wrap come from?
14:48
<
Wizzup >
I don't see them anywhere
14:48
<
freemangordon >
from xorg package
14:48
<
freemangordon >
see ^^^
14:48
<
Wizzup >
I see Xorg.wrap, but not xinit
14:49
<
freemangordon >
will set needs_root_rights=no and will see
14:55
<
freemangordon >
user 2604 2603 5 16:53 tty7 00:00:04 /usr/lib/xorg/Xorg :0 -keeptty -logverbose 1 -noreset -s 0 -core vt7 -keeptty -auth /tmp/serverauth.7fOHNZMCmv
14:56
<
freemangordon >
but idle consumption is still very high
14:57
pere has quit [Ping timeout: 265 seconds]
14:58
norayr has left #maemo-leste [Error from remote client]
15:00
<
freemangordon >
maybe elogind opens some device and never closes it
15:02
<
freemangordon >
yep, it has several /dev/input/eventN fds
15:04
<
Wizzup >
ok, that's probably it then
15:04
<
Wizzup >
but elogind runs no matter if we have root X or not, no?
15:05
<
Wizzup >
why does elogind even have to open this? to read the power button?
15:05
<
Wizzup >
it opens several more than once, too
15:05
<
freemangordon >
I guess it does its stuff when we have a session
15:06
<
Wizzup >
I don't think we want it to do -anything- with /dev/input
15:06
<
freemangordon >
mhm
15:06
<
Wizzup >
I need to go
15:06
<
Wizzup >
back later
15:06
* freemangordon
checks in the code how to do that
15:08
<
bencoh >
sounds terrible tbh yeah
15:12
<
freemangordon >
ok, but how does mce uses power button with no issue?
15:13
<
bencoh >
doesn't mce close it when we disable display from hildon's UI?
15:13
<
bencoh >
(be it double-press on power button or lock screen)
15:14
<
freemangordon >
power button remains active when device is locked
15:14
<
freemangordon >
no, this is something else
15:16
<
Wizzup >
freemangordon: yes, that is kept open but kernelhas suspend iirc
15:16
<
freemangordon >
killing elognd does not help
15:17
<
Wizzup >
wrt power?
15:17
<
freemangordon >
mhm
15:17
<
Wizzup >
I think it confuses mce too
15:17
<
Wizzup >
I was unable to use ts on my d4
15:17
<
uvos__ >
powerbutton (and cpcap keys in general) require no power to keep open
15:17
<
freemangordon >
right
15:17
<
freemangordon >
anyway, it is not elogind
15:17
<
Wizzup >
so just killing elogind is not enough, it confuses mce
15:18
<
Wizzup >
I am not sure if your test is valid
15:18
<
freemangordon >
lemme restart mce
15:18
<
freemangordon >
yeah
15:18
<
freemangordon >
cannot restart mce
15:18
<
uvos__ >
so is it keeping the touchscreen event devices open (elogind)?
15:19
<
uvos__ >
at any point
15:19
<
freemangordon >
will check
15:19
<
uvos__ >
killing elogind might also not remove the problem
15:19
<
uvos__ >
because it might have change the autosuspend tuneables
15:20
<
uvos__ >
or it could be something else entirely
15:20
<
Wizzup >
uvos__: it has almost all open
15:20
<
freemangordon >
if elogind opens TS that might explain it, no?
15:20
<
Wizzup >
at all time
15:20
<
uvos__ >
freemangordon: yes
15:20
<
uvos__ >
that blocks ret
15:22
rafael2k_ has joined #maemo-leste
15:23
<
Wizzup >
feature creep at its best
15:23
<
uvos__ >
i mean logind handling power isent feature creep
15:23
<
uvos__ >
what this is is bad implementation
15:24
<
uvos__ >
(it should release when configured to not handle it)
15:24
<
freemangordon >
you can't configure it
15:24
ceene has quit [Ping timeout: 276 seconds]
15:25
<
Wizzup >
uvos__: they go hand in hand
15:25
<
uvos__ >
freemangordon: whitch one of these is ts?
15:25
<
freemangordon >
lemme check
15:25
<
uvos__ >
the keyboard ones are not relevant
15:25
<
freemangordon >
but, lemme check something first
15:25
<
uvos__ >
the kernel itself never closes those
15:25
rafael2k has quit [Ping timeout: 276 seconds]
15:26
<
uvos__ >
(it keeps those open for the vts)
15:26
<
Wizzup >
I don' think we have 5 devices with power button
15:26
<
uvos__ >
not but any device with EV_KEY
15:26
<
uvos__ >
is open at all times by the kernel itself
15:26
<
uvos__ >
so they dont matter
15:26
<
uvos__ >
thats the keyboard and other stuff too
15:26
<
freemangordon >
still, elogind should not keep devices it is not interested in open
15:26
<
Wizzup >
unrelated but how does this work with ts keys
15:27
<
uvos__ >
ts-buttons is "opertuneisitc"
15:27
<
uvos__ >
ie it only reports keys when the touchscreen is open by some other source
15:28
<
uvos__ >
yes this is a hack to work around this very problem
15:28
<
freemangordon >
what is the easiest way to check what is eventN?
15:28
<
uvos__ >
freemangordon: right
15:29
<
uvos__ >
ls -l /dev/input/by-path/
15:29
<
freemangordon >
ok, "Filtered touchscreen" is event2
15:29
<
uvos__ >
or udevadm
15:29
<
freemangordon >
platform-mapphone_touchscreen-event -> ../event2
15:29
<
uvos__ >
yeah that costs a tone of power
15:29
<
freemangordon >
lrwx------ 1 root root 64 Mar 14 17:23 20 -> /dev/input/event2
15:30
<
freemangordon >
right
15:31
<
freemangordon >
that seems like a bug to me
15:31
<
freemangordon >
not something intended
15:32
<
freemangordon >
I see in elogind code that it is supposed to close devices that has no buttons elogind is interested in
15:33
<
uvos__ >
systemd-logind
15:33
<
uvos__ >
dosent appear to have all events open
15:33
<
uvos__ >
just a couple
15:33
<
uvos__ >
out of 20 on my PC
15:33
<
freemangordon >
what is the version?
15:34
<
freemangordon >
ummm....
15:34
<
freemangordon >
manager_all_buttons_ignored() :)
15:34
<
freemangordon >
lemme try that
15:38
pere has joined #maemo-leste
15:40
<
bencoh >
< Wizzup> feature creep at its best / and that's with a supposedly light/standalone version of elogind ... :/
15:40
<
uvos__ >
im not sure how you expect logind to manage the session without knowing power key state and laptop lid state etc
15:40
<
uvos__ >
its not feature creep at all
15:41
<
freemangordon >
didn't help :(
15:41
<
uvos__ >
report a bug, its seams a bug
15:41
<
uvos__ >
systemd must have fixed it after the fork
15:42
<
freemangordon >
well, I'll rather fix it and send a patch
15:59
<
Wizzup >
uvos__: is your systemd-logind the same version
15:59
<
freemangordon >
253.1
15:59
<
Wizzup >
maybe it is solved in new elogind too
16:33
DPA has joined #maemo-leste
16:43
pere has quit [Ping timeout: 268 seconds]
16:44
DPA has joined #maemo-leste
17:09
uvos__ has quit [Ping timeout: 246 seconds]
17:10
uvos__ has joined #maemo-leste
17:11
arno11 has joined #maemo-leste
17:13
<
arno11 >
guys do you trust me if i say i'm chating with my wife on fb messenger using your conversations app ?
17:14
<
Wizzup >
haze and libpurple for facebook? :)
17:14
rafael2k_ has quit [Ping timeout: 246 seconds]
17:14
<
Wizzup >
cool in any case :D
17:14
<
arno11 >
no lol localhost gateway with bitlbee
17:15
<
arno11 >
and through irssi in conversations
17:15
<
arno11 >
yes really cool
17:15
<
arno11 >
and almost no power ressources
17:16
<
Wizzup >
ah, check, that also works :D
17:16
<
arno11 >
because bitlbee works with conversation it means
17:16
<
Wizzup >
yeah, we do need to support groups in conversations
17:16
<
Wizzup >
the code is there for it, kinda, but not in a release and UI for it is missing
17:17
uvos__ has quit [Ping timeout: 264 seconds]
17:17
<
Wizzup >
I have slack working telepathy-haze and purple-slack
17:17
<
arno11 >
twitter signal and telegram should work as well
17:17
<
arno11 >
using bitlbee
17:18
<
Wizzup >
I think this is libpurple, no?
17:18
<
Wizzup >
so this can also work with telepathy-haze
17:19
<
bencoh >
s/can/could/ I remember having issues with telepathy-haze and newer protocols (ie telegram) on fremantle
17:19
<
arno11 >
it is another specific lib
17:19
<
Wizzup >
(and extra lib ofc)
17:19
<
bencoh >
iirc the issue was with auth
17:20
<
Wizzup >
bencoh: all ssl on fremantle is no-go nowadays anyway
17:20
<
bencoh >
yeah I mean, before that
17:20
<
arno11 >
yeah but it needs bitlbee plugin facebook
17:20
<
arno11 >
and needs a hack
17:20
<
arno11 >
with a .so file
17:20
<
Wizzup >
arno11: signal, or something else?
17:21
<
arno11 >
bencoh: yeah but it works with a hack
17:22
<
arno11 >
Wizzup: signal should work too
17:23
<
Wizzup >
arno11: in any case, if it wasn't clear (maybe it was): bitlbee and telepathy-haze can both use libpurple and thus theoretically work with most pidgin plugins
17:23
<
Wizzup >
so you can also definitely so slack on bitlbee, like I did for tp-haze
17:23
<
Wizzup >
not pushing for any direction, just FYI
17:24
<
Wizzup >
let me see if I can get my n900 attached to this serial
17:24
<
Wizzup >
freemangordon: re: elogind, what do we plan to do, fix it and build ourselves until next release?
17:25
<
Wizzup >
bookworm also has 246
17:25
<
arno11 >
Wizzup:ok everything is clear
17:28
<
freemangordon >
Wizzup: yeah, sounds like a plan
17:28
<
freemangordon >
but it is extremely hard to find where are those opened
17:40
<
Wizzup >
no surprise there :D
17:40
<
Wizzup >
does it use libinput?
17:41
<
freemangordon >
what I think happens here is that is kinda "shadows" the real devices for user session
17:42
<
Wizzup >
freemangordon: and if we set HandleLidSwitch=ignore, and same for all the others, does it still open event files?
17:42
<
freemangordon >
yes
17:42
<
freemangordon >
because those get opened by session_device_open()
17:42
<
freemangordon >
this is a result of a dbus call
17:43
<
Wizzup >
>Only input devices with the "power-switch" udev tag will be watched for key/lid switch events.
17:44
<
freemangordon >
yes, but we hit something differenet
17:44
<
freemangordon >
maybe when session process opens a device, this gets opened by elogind too
17:45
<
Wizzup >
that would be absolutely insane @ mirroring
17:45
<
Wizzup >
or shadowing
17:45
<
Wizzup >
that can't be it
17:47
<
freemangordon >
this is for "/dev/input/event5"
17:47
<
freemangordon >
in VM
17:48
<
freemangordon >
ok, leme retry with dbus-monitor
17:51
<
Wizzup >
maybe this is the 'tracking' that it does or something
17:51
<
freemangordon >
could be
17:53
<
Wizzup >
I just confirmed that setting
*all* of the HandleBlaBla=ignore doesn't help
17:54
<
freemangordon >
already tried, but ok
17:54
<
Wizzup >
didn't know that
17:54
<
freemangordon >
se, this is TakeDevice method
17:54
<
freemangordon >
*so
17:55
<
freemangordon >
"TakeDevice() allows a session controller to get a file descriptor for a specific device."
17:55
<
Wizzup >
it seems to be somehow facilitating libinput
17:57
<
freemangordon >
oh, ok
17:57
<
freemangordon >
sec
17:57
uvos__ has joined #maemo-leste
17:58
<
freemangordon >
see this
17:59
<
Wizzup >
I guess we will probably have to add logind specific code to tell it to drop the devices, just disabling it in xorg isn't enough
18:00
<
freemangordon >
it should be
18:00
<
freemangordon >
or rather
18:01
<
freemangordon >
xf86DeleteInput() calls systemd_logind_release_fd
18:01
<
freemangordon >
Wizzup: we have to add code where?
18:03
<
freemangordon >
Wizzup: uvos__: what do we use now to disable input devices?
18:03
<
freemangordon >
XInputDisable?
18:04
* freemangordon
checks mce code
18:05
<
freemangordon >
x11_set_input_device_enabled
18:05
* freemangordon
wonders where this end up in server code
18:06
<
Wizzup >
x11_set_input_device_enabled that sounds like a helper function in mce
18:06
<
Wizzup >
or is this libinput?
18:06
<
freemangordon >
sorry, helper
18:06
<
freemangordon >
XIChangeProperty
18:07
<
freemangordon >
"Device Enabled" atom it seems
18:07
<
freemangordon >
p, li { white-space: pre-wrap; } XI_PROP_ENABLED
18:08
<
Wizzup >
yeah, that sounds like normal X way
18:09
<
freemangordon >
ok, but where this ends up?
18:17
<
Wizzup >
don't know
18:24
akossh has joined #maemo-leste
18:30
arno11 has left #maemo-leste [#maemo-leste]
18:34
<
freemangordon >
Wizzup: ok, seems we will have to cheat
18:34
<
Wizzup >
sounds fun :D
18:34
<
freemangordon >
xorg does not support releasing input devices, but elogind can 'pause' them
18:35
<
freemangordon >
in order to do that we should activate another session
18:35
<
freemangordon >
not sure how to do that though
18:35
<
Wizzup >
can we just not have xorg tell elogind about input devices?
18:36
<
freemangordon >
multi-session will not work then
18:36
<
freemangordon >
as xork will keep devices open
18:37
<
freemangordon >
*xorg
18:37
<
Wizzup >
does this bother us?
18:38
<
freemangordon >
well
18:38
<
freemangordon >
lemme check something
18:38
<
Wizzup >
btw, what do you mean, xorg does not support releasing input devices
18:38
<
Wizzup >
you can definitely get xorg to close the fds
18:39
<
freemangordon >
do you know where that happens?
18:39
* freemangordon
checks if this is fixed in upstream xorg
18:39
<
Wizzup >
no, I will have to look, but I can try to see
18:39
<
Wizzup >
I mean we know xorg closes them for a fact, that's why without elogind, things work fine
18:40
<
freemangordon >
yes
18:42
<
Wizzup >
freemangordon: dix/devices.c DisableDevice ?
18:42
<
freemangordon >
(void) (*dev->deviceProc) (dev, DEVICE_OFF);
18:42
<
Wizzup >
you can break on that in gdb for sure
18:44
<
freemangordon >
yeah
18:45
<
Wizzup >
seems to call Disable() on whatever the abstract driver is, if hw/kdrive/src/kinput.c is the right place to look
18:45
<
freemangordon >
what is kdrive in that contaxt?
18:45
<
freemangordon >
*context
18:45
<
Wizzup >
I can't find another more reasonable place/file where DEVICE_OFF is used
18:47
<
freemangordon >
hmmm
18:48
<
freemangordon >
DisableDevice is not called in the VM
18:48
<
freemangordon >
when I lock the screen that is
18:49
<
freemangordon >
neither is DeviceSetProperty
18:49
<
freemangordon >
what the?
18:51
<
Wizzup >
maybe this is libinput magic
18:52
<
freemangordon >
xinput --set-prop 12 "Device Enabled" 0 makes it hit the breakpoint
18:52
<
Wizzup >
what does mce do then?
18:52
<
freemangordon >
maybe mce does not work properly in VM
18:52
<
Wizzup >
(if not that)
18:52
<
freemangordon >
no idea
18:53
<
freemangordon >
uvos__: ^^^?
18:55
<
Wizzup >
lol this is really quite hilarious, it doesn't seem to ever release fds unless it fails to grab them or something
18:55
<
freemangordon >
Wizzup: yes, because xorg does not control those fds anyways
18:56
<
freemangordon >
it is elogind that does it
18:56
<
Wizzup >
none of this makes any sense to me, but I am probably just grumpy
18:56
<
freemangordon >
and it just send PauseDevice signal
18:56
<
freemangordon >
imagine, if you switch the session
18:56
<
freemangordon >
your active session should receive kbd input, no?
18:57
<
Wizzup >
I don't see why X cannot close input devices if it is not active, but I guess there is no point in discussing why elogind works the way it does
18:57
<
Wizzup >
we can't change that anyhow
18:57
<
freemangordon >
because it didn;t opent them in first place :)
18:57
k1r1t0 has quit [Ping timeout: 276 seconds]
18:58
<
Wizzup >
freemangordon: if it does open them in the first place, it's fine
18:58
<
Wizzup >
also keep in mind that most input devices can be opened many times
18:58
<
freemangordon >
well, we'd better fix that properly
18:58
<
Wizzup >
why can't elogind let go of the fd?
18:58
<
Wizzup >
I don't see how that factors in to the switching
18:59
<
freemangordon >
elogind will close fds, if we somehow tell it to do so
18:59
<
Wizzup >
so why doesn't X?
18:59
<
freemangordon >
like, switch the session
18:59
<
freemangordon >
because X just asked elogind to open fds for it
18:59
<
freemangordon >
anyway
18:59
<
freemangordon >
this makes sense to me
18:59
<
Wizzup >
xorg without elogind:
18:59
<
Wizzup >
1. opens input devices by default
18:59
<
Wizzup >
2. when input disabled, closes fd
19:00
<
Wizzup >
why can't it do the same with elogind?
19:00
<
freemangordon >
I think this is more complicated
19:00
<
freemangordon >
it seems this is libinput that does the magic
19:00
<
freemangordon >
ummm
19:00
<
freemangordon >
sorry
19:00
<
freemangordon >
Thread 1 "Xorg" hit Breakpoint 4, 0x00007f459b5c18a0 in ?? () from /usr/lib/xorg/modules/input/libinput_drv.so
19:00
<
freemangordon >
libinput_drv.so
19:04
<
freemangordon >
Wizzup: this ends up in xf86libinput_off() which in turn calls xf86SetIntOption(pInfo->options, "fd", -1);
19:07
<
freemangordon >
and where this ends is the million dollars question :)
19:13
<
freemangordon >
Wizzup: I don't get that note
19:13
<
Wizzup >
(sry, work mtg)
20:02
norayr has joined #maemo-leste
20:27
DPA has quit [Ping timeout: 276 seconds]
20:43
arno11 has joined #maemo-leste
20:44
<
freemangordon >
Wizzup: maybe I can patch xorg to ReleaseDevice() on disable
20:44
<
freemangordon >
but, maybe we shall drop logind session (and run Xorg as root) until done
20:45
<
freemangordon >
it will take me some time to patch it
20:45
<
arno11 >
Sorry guys but is there a magic command to get pin entry code working or is it broken on n900 ?
20:46
<
freemangordon >
BTW, didn;t mce use dpms to disable devices?
20:46
<
freemangordon >
pin entry? SIM pin?
20:47
<
freemangordon >
it should work
20:48
<
freemangordon >
arno11: sorry, my comment was not very helpful :)
20:48
<
arno11 >
ok lol no probs
20:48
<
arno11 >
you're working hard i know
20:48
<
freemangordon >
does ofono report that SIM requires PIN?
20:49
<
arno11 >
nope nothing happened in fact
20:49
<
arno11 >
ofono is not ready
20:50
<
Wizzup >
freemangordon: well for non-devel chimaera we have this, right?
20:50
<
freemangordon >
yes
20:50
<
freemangordon >
arno11: well, of ofono is not ready...
20:50
<
freemangordon >
*if
20:50
<
arno11 >
always this message
20:50
<
Wizzup >
arno11: does ofono see the modem?
20:51
<
freemangordon >
Wizzup: ok, will see what I can do during the weekend
20:53
<
arno11 >
freemangordon:i mean sms app says: ofono is not ready
20:53
<
Wizzup >
I am fine with running X as root fwiw
20:53
<
Wizzup >
arno11: mdbus2 is probably a good way to debug ofono's state
20:53
<
Wizzup >
and fwiw startup-pin-query is the program to run for getting the pin gtk dialog
20:53
<
arno11 >
ok i'll try
20:53
<
Wizzup >
(normally it runs on boot)
20:53
<
arno11 >
ok thx guys
20:54
<
Wizzup >
you can dpkg -i it I think
20:55
<
sicelo >
or ofono-scripts
20:56
<
sicelo >
output of ` sudo dmesg | grep 'modem\|ssi' ` might also be interesting to see
20:56
<
Wizzup >
I find ofono-scripts less useful, but yes, that can work too
20:58
<
arno11 >
interesting
20:58
<
arno11 >
i'll try all of that and let you know guys
20:59
<
freemangordon >
Wizzup: startup-pin-query is
*not* run on boot :)
20:59
<
freemangordon >
it is run by status menu plugin once SIM/modem is ready
21:00
<
freemangordon >
ugh
21:00
<
Wizzup >
freemangordon: so effectively on boot :P
21:00
<
freemangordon >
I hope this is in chimaera
21:00
<
Wizzup >
should be, I use it daily
21:01
<
freemangordon >
no, if you boot d4 with no SIM and then hot-plug, it will
*then* ask you
21:01
<
freemangordon >
ok, it is in chimaera, but not in master
21:01
<
freemangordon >
lemme fix that
21:22
arno11 has left #maemo-leste [#maemo-leste]
21:32
<
Wizzup >
uvos__: on my laptop:
21:32
<
Wizzup >
# ls -lsh /proc/2408/fd | grep event | grep input | wc -l
21:32
<
Wizzup >
elogind opened just about every eventX that existed
21:36
uvos has joined #maemo-leste
21:42
<
uvos >
what version is that
21:43
<
uvos >
are any of the previous questions to me still relevant wrt mce etc?
21:45
<
uvos >
dpms is not relevant to input devices
21:45
<
uvos >
this is for crts
21:46
<
buZz >
dpms likely gets stopped by input devices?
21:47
<
uvos >
xorgs dpms extension manages crtc state based on input devices yes, avoid that is why we disable all input devices on blank, instead of just the ts
21:47
<
uvos >
but this is not relevant to this discussion
21:51
<
Wizzup >
uvos__: 246.10-r2
21:57
<
uvos >
one annyoing thing with startup-pin-query is that if you accidentaly click above it (ie dissmissing it) there is no way to get it back
21:57
<
uvos >
but that would be a easy fix with a .desktop file to runn it again
21:58
<
Wizzup >
you can go to settings and get it back
21:58
<
Wizzup >
settings->phone
21:59
<
Wizzup >
this is something we'll have to fix later/eventually
22:11
pere has joined #maemo-leste
22:37
DPA has joined #maemo-leste
22:43
DPA has quit [Ping timeout: 246 seconds]
22:49
DPA has joined #maemo-leste
22:56
maemish_ has joined #maemo-leste
23:05
Langoor has quit [Remote host closed the connection]
23:06
Langoor has joined #maemo-leste
23:16
DPA has quit [Ping timeout: 276 seconds]
23:31
DPA has joined #maemo-leste