From ArchWiki
Revision as of 12:32, 2 September 2015 by Chazza (talk | contribs) (Persistent display blanking: typo)
Jump to: navigation, search

Multiple modifiers section

Here's a little tidbit I found that may be worth adding to the documentation (although I don't know where it would best fit in):

The setting for easy_click in xfwm4.xml is the name of the modifier key. But what if you want to use multiple modifiers? I want Ctrl+Alt to be the easy_click modifier. After reading through the source to see how it parsed the setting, I found that I could get Ctrl+Alt to work by using this line in the config file:
<property name="easy_click" type="string" value="Ctrl&gt;&lt;Alt"/>
  • After reading the XML file, it will have the modifier string as "Ctrl><Alt".
  • When xfwm4 formats that as a modifier (by adding angle brackets around it), it becomes "<Ctrl><Alt>".
  • Gtk parses the pair of modifiers correctly and it works as expected.

TheAmigo (talk) 18:59, 8 June 2015 (UTC)

How about creating a subsection in Xfce#Tips & Tricks for it, perhaps titled Using multiple modifiers or something along those lines? -- Chazza (talk) 07:30, 9 June 2015 (UTC)
-1 from me for split pages. Reason:
  1. From my experience, such "Tips & Tricks" pages is more likely become out of date and no one care.
  2. It is hard for translation team to follow page split(merge).

--Fengchao (talk) 23:44, 11 June 2015 (UTC)

I'm a tad confused by your response, Fengchao. Are you saying that articles should not have Tips and tricks sections? They are mentioned in Help:Style#"Tips and tricks" sections and the OP's suggestion seems appropriate for this. -- Chazza (talk) 07:41, 12 June 2015 (UTC)
I think this is just a simple misunderstanding: this discussion is not about splitting the Tips and tricks section :)
I'm +1 for adding the multiple modifiers trick under Xfce#Tips and tricks by the way.
— Kynikos (talk) 02:22, 13 June 2015 (UTC)
Sorry, I thought you want to create a new page. -- Fengchao 09:38, 14 June 2015‎

Lock screen on suspend

Xfce#Lock the screen gives an introduction to screen locking, but I can't get it to work with xfce4-power-manager on resuming from suspend. I've found little on this [1] [2] and an old bug for Xfce 4.8. [3]. Locking via Ctrl+Alt+L works as expected (slock). Can others reproduce, and if yes, should I investigate further and file a bug upstream? Perhaps this could be related to the light-locker transition (where I use xinitrc). -- Alad (talk) 10:52, 13 July 2015 (UTC)

This functionality works fine for me but I use gnome-screensaver. This might be an issue for specific screen lockers as opposed to a general Xfce issue. I notice that there is an alternative "lock screen before sleep" option under Applications -> Settings -> Session and Startup -> Advanced. Perhaps that works where the xfpm option does not? -- Chazza (talk) 11:05, 13 July 2015 (UTC)
Indeed, it works with gnome-screensaver. It even uses gnome-screensaver when I symlink slock in /usr/local/bin to xflock4 (though the shortcut and menu do respect xflock4). Looking through the source, xfpm is supposed to use xflock4 though [4], so not sure what's happening here. -- Alad (talk) 06:04, 14 July 2015 (UTC)
It's worth taking a look at what xflock4 is actually doing here - it's just a shell script. As can be seen from the first for loop, it will try to execute xscreensaver-command -lock and gnome-screensaver-command --lock in that order and it will exit. Only if neither of those can be executed will it move on to deal with xclock and slock. So xfpm's behaviour is correct here.
Edit: Whoops, misread. Yes I see the problem here, the symlink isn't being respected. Not sure why that would be the case.
Edit2: The lock screen panel action button first tries to find the program in path before executing.[5] The power manager doesn't. That's probably the source of the inconsistency. -- Chazza (talk) 08:01, 14 July 2015 (UTC)

Persistent display blanking

With regards to this section, the correct solution is to activate Xfpm's presentation mode - right click on the tray icon/left click on the panel applet and tick "Presentation mode" or run:

$ xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true 

How about replacing the section with that info and then mention that there are some issues - linking to the bug reports currently referenced in the accuracy notice? -- Chazza (talk) 14:47, 31 August 2015 (UTC)

No complaints so far so I've implemented this with [6]. -- Chazza (talk) 10:19, 2 September 2015 (UTC)
Corrected since the edit above with [7] as Xorg blanking and DPMS aren't the same according to this and this. My mistake. --