Re: Media key support in F32 / Gnome / systemd

2020-08-18 Thread Benjamin Berg
On Mon, 2020-08-17 at 11:00 -0700, Samuel Sieb wrote:
> On 8/17/20 2:54 AM, Benjamin Berg wrote:
> > Note that you can also change the power button action in gnome-
> > control-
> > center, power, "Suspend & Power Button", "Power Button Action".
> 
> This wasn't the power button though.  It's the suspend/sleep button.

Ah, sorry, I misread that!

In that case, the relevant upstream bug is
  https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/537

but it is not clear to me how to move forward there. It really is a
pretty bad usability situation when people start to glue coins on top
of keys …

Benjamin


signature.asc
Description: This is a digitally signed message part
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Media key support in F32 / Gnome / systemd

2020-08-17 Thread Samuel Sieb

On 8/17/20 2:54 AM, Benjamin Berg wrote:

Note that you can also change the power button action in gnome-control-
center, power, "Suspend & Power Button", "Power Button Action".


This wasn't the power button though.  It's the suspend/sleep button.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Media key support in F32 / Gnome / systemd

2020-08-17 Thread Benjamin Berg
Hi,

On Sat, 2020-08-08 at 14:30 -0400, Christopher wrote:
> 1. There is no GUI to change the setting.
> 2. The logind.conf settings have no effect on the media keys.
> 3. The key is XF86Sleep (and not XF86Suspend).
> 4. The key is assigned to the 'suspend-static' behavior in
> dconf-editor / gsettings
> 5. Changing the assignment in dconf-editor / gsettings requires
> logging out and back in to take effect

That is odd, the setting should really be instant apply. Could you
report an upstream bug against gnome-settings-daemon if you are able to
reproduce it?

Though, maybe this was just the confusion that the key needs to be
explicitly removed?

> And most importantly,
> 6. It is *not* enough to assign the XF86Sleep button to another action
> in the keyboard shortcuts. You have to *also* remove it from the
> 'suspend-static' action, or it will suspend the computer instead of
> performing the other assigned action.

The program changing the configuration needs to ensure there are no
collisions. If you have collisions, then it is currently undefined
which action is executed.

So, the user can do that, but it is somewhat dangerous unfortunately.

> This last bit was the part that was the most frustrating, since
> everything else I did had no effect. Now that I have unassociated
> 'XF86Sleep' from the 'suspend-static' action, I can now re-assign it
> to do other things.

Yeah, I see how it might be unexpected, but I think the expectation to
have a clean configuration is reasonable.

> Thanks for the sanity check and for setting me on the right path. This
> isn't a great user experience, but at least it is *possible* to
> configure things the way I want.

Possible, yes. I don't really consider it to be "supported" though.
Still better than simply hard-coding them in C :)


Note that you can also change the power button action in gnome-control-
center, power, "Suspend & Power Button", "Power Button Action".

Benjamin


signature.asc
Description: This is a digitally signed message part
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Media key support in F32 / Gnome / systemd

2020-08-08 Thread Christopher
On Sat, Aug 8, 2020 at 2:57 PM Samuel Sieb  wrote:
>
> On 8/8/20 11:30 AM, Christopher wrote:
> > Thanks for the sanity check and for setting me on the right path. This
> > isn't a great user experience, but at least it is *possible* to
> > configure things the way I want.
>
> Well, for most users, it's a great experience because the keys do what
> they say they do.  I'm very happy that my suspend key works. :-)  And I
> don't expect to be able to easily map any random key on my keyboard to
> something else.

That's a fair point. However, this keyboard specifically markets
itself as having the ability to modify the behavior of the keys, so
purchasers of this keyboard *should* expect to be able to easily map
the media keys to something else. I think this is a mainstream
expectation nowadays for standard media keys. And, a quick search
online of this problem will find many people frustrated by the
placement of this key nearby other keys (it sits between the email and
calculator keys), and desire to re-map it to avoid accidentally
shutting down their computer when all they want to do is open their
email (with numerous outdated answers about how to do it in previous
versions of Gnome that don't work anymore).

I will modify my previous statement about not being a great experience
to this longer observation: the *initial* experience (until I learned
more about Gnome configuration and the implications) was *slightly*
less than great *if* you don't like the default behavior. The initial
experience could be improved dramatically if the previous bindings
were automatically removed when a new binding is set in
gnome-control-center keyboard shortcuts. Also, it would be nice if all
available bindings were shown in the GUI, instead of some only
available hidden in dconf-settings/gsettings. It would also be great
if I could search by value in dconf-editor to be able to find all
mappings of XF86Sleep or another button when I don't know the
configuration key name. Feature-wise, the fact that everything works
as labeled out of the box, and the fact that you can make changes, is
great. Usability-wise, there's room for some improvement. Overall,
it's still great, even though it could be better.

Thanks again,
Christopher
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Media key support in F32 / Gnome / systemd

2020-08-08 Thread Samuel Sieb

On 8/8/20 11:30 AM, Christopher wrote:

Thanks for the sanity check and for setting me on the right path. This
isn't a great user experience, but at least it is *possible* to
configure things the way I want.


Well, for most users, it's a great experience because the keys do what 
they say they do.  I'm very happy that my suspend key works. :-)  And I 
don't expect to be able to easily map any random key on my keyboard to 
something else.

___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Media key support in F32 / Gnome / systemd

2020-08-08 Thread Christopher
On Sat, Aug 8, 2020 at 1:38 PM Samuel Sieb  wrote:
>
> On 8/8/20 3:52 AM, Christopher wrote:
> > Does anybody know what the current state of media key support is in
> > F32 / Gnome / systemd?
> > Is it currently broken?
>
> It works great.

That wasn't my experience, but knowing it works for others helps me
narrow down whether the problem is on my end or not.

>
> > I recently bought a Logitech MK270 wireless mouse/keyboard (pretty
> > common), which has a "power" media key, which seems to put my Fedora
> > 32 system to sleep, and it doesn't seem to be possible to disable it
> > in Gnome or in systemd-logind settings. It's possible I'm doing
> > something wrong, but I'm now questioning whether this is just broken
> > in Fedora right now, since nothing I've tried works.
>
> That sounds to me like it's doing exactly what it should.  What are you
> expecting it to do?  If you go into the Gnome settings Power panel, you
> could try changing the power key action, but that might only affect the
> hard power button on the case.  An alternative is to use dconf-editor
> and change the suspend key setting in
> /org/gnome/settings-daemon/plugins/media-keys/.

What I was expecting was the ability to disable it. After your
response, and another half hour of troubleshooting, I have learned
that:

1. There is no GUI to change the setting.
2. The logind.conf settings have no effect on the media keys.
3. The key is XF86Sleep (and not XF86Suspend).
4. The key is assigned to the 'suspend-static' behavior in
dconf-editor / gsettings
5. Changing the assignment in dconf-editor / gsettings requires
logging out and back in to take effect
And most importantly,
6. It is *not* enough to assign the XF86Sleep button to another action
in the keyboard shortcuts. You have to *also* remove it from the
'suspend-static' action, or it will suspend the computer instead of
performing the other assigned action.

This last bit was the part that was the most frustrating, since
everything else I did had no effect. Now that I have unassociated
'XF86Sleep' from the 'suspend-static' action, I can now re-assign it
to do other things.

Thanks for the sanity check and for setting me on the right path. This
isn't a great user experience, but at least it is *possible* to
configure things the way I want.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Media key support in F32 / Gnome / systemd

2020-08-08 Thread Samuel Sieb

On 8/8/20 3:52 AM, Christopher wrote:

Does anybody know what the current state of media key support is in
F32 / Gnome / systemd?
Is it currently broken?


It works great.


I recently bought a Logitech MK270 wireless mouse/keyboard (pretty
common), which has a "power" media key, which seems to put my Fedora
32 system to sleep, and it doesn't seem to be possible to disable it
in Gnome or in systemd-logind settings. It's possible I'm doing
something wrong, but I'm now questioning whether this is just broken
in Fedora right now, since nothing I've tried works.


That sounds to me like it's doing exactly what it should.  What are you 
expecting it to do?  If you go into the Gnome settings Power panel, you 
could try changing the power key action, but that might only affect the 
hard power button on the case.  An alternative is to use dconf-editor 
and change the suspend key setting in 
/org/gnome/settings-daemon/plugins/media-keys/.

___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org