Bug 710496
Summary: | lxpanel error on LXDE startup. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | jurek.bajor | ||||||||
Component: | lxpanel | Assignee: | Christoph Wickert <christoph.wickert> | ||||||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 15 | CC: | christoph.wickert | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2011-08-30 10:57:21 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Created attachment 502823 [details]
lxde desktop capture after startup.
What exactly is the problem here? This error msg in startx.log: ** (lxpanel:20907): WARNING **: Group count mismatch, ctrls = 1, groups = 1, symbols = 2 If it is irrelevant, then why issue it ? Anyway, you decide what to do with it - close the report or follow it up. The error message is from the xkb plugin. Did you configure your xorg.conf as described in teh LDXDE wiki? http://wiki.lxde.org/en/Change_keyboard_layouts I added Keyboard Layout Switcher (that US flag on the panel) via: rigth-click panel Add/Remove Panel Items Add select Keyboard Layout Switcher I also configured: Preferences Input Method Selector Use IBus Input Method Preferences Input Method Customize ... added two input methods JB Additional test results. < as in startx.log attachment > ... (nm-applet:29940): Gtk-CRITICAL **: gtk_cairo_should_draw_window: assertion `GDK_IS_WINDOW (window)' failed ** (lxpanel:29926): WARNING **: Group count mismatch, ctrls = 1, groups = 1, symbols = 2 ****************************************************************************** After 'startx'. Initial desktop. ****************************************************************************** ****************************************************************************** Open lxterminal. Left_Alt+Shift to switch to other keyboard/language. Note: Keyboard Layout Switcher on panel changed. Watch ~/.startx.log . ****************************************************************************** The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols > Ignoring extra symbols Errors from xkbcomp are not fatal to the X server ** (lxpanel:29926): WARNING **: Group count mismatch, ctrls = 1, groups = 1, symbols = 2 ****************************************************************************** switch focus off lxterminal (click outside of it). Note: Keyboard Layout Switcher on panel changed. Watch ~/.startx.log . ****************************************************************************** The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols > Ignoring extra symbols Errors from xkbcomp are not fatal to the X server ** (lxpanel:29926): WARNING **: Group count mismatch, ctrls = 1, groups = 1, symbols = 2 ****************************************************************************** switch focus to lxterminal (click on it). Note: Keyboard Layout Switcher on panel changed. Watch ~/.startx.log . ****************************************************************************** The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols > Ignoring extra symbols Errors from xkbcomp are not fatal to the X server ** (lxpanel:29926): WARNING **: Group count mismatch, ctrls = 1, groups = 1, symbols = 2 ****************************************************************************** etc. ****************************************************************************** JB (In reply to comment #5) > I added Keyboard Layout Switcher (that US flag on the panel) via: > rigth-click panel > Add/Remove Panel Items > Add > select Keyboard Layout Switcher > > I also configured: > Preferences > Input Method Selector > Use IBus > Input Method Preferences > Input Method > Customize ... > added two input methods My question was if you had configured anything as described in the LXDE wiki. I take this answer as a "no". Can you please follow the instruction from the wiki and configure the keyboard layouts in X first? And can you also disable input methods while testing? (In reply to comment #7) > (In reply to comment #5) > > I added Keyboard Layout Switcher (that US flag on the panel) via: > > rigth-click panel > > Add/Remove Panel Items > > Add > > select Keyboard Layout Switcher > > > > I also configured: > > Preferences > > Input Method Selector > > Use IBus > > Input Method Preferences > > Input Method > > Customize ... > > added two input methods > > My question was if you had configured anything as described in the LXDE wiki. I > take this answer as a "no". > > Can you please follow the instruction from the wiki and configure the keyboard > layouts in X first? And can you also disable input methods while testing? Obviously, I did not use manual keyboard layout /switcher config as it requires manual creation of xorg.conf in a generic way, which is discouraged as X is now on my Intel graphics card system in "modesetting" and xorg.conf is not utilized any more. Now, the wiki you refer to refers in turn to this guide which is dated "The XKB Configuration Guide ... 25 November 2002" - we are in the year 2011. Yes, the guide is valid but it is a generic guide for manual configuration as it used to be done in the past. Today I have a desktop with GUI and tools LXDE provides as described above to do this keyboard config and much, much more. Why do you tell me to use ancient and generic config method instead ? Because the wiki says this ? "Input methods This is another issue and the setup could be distro-specific." What do you mean by "another issue" ? Do you say you are not comfortable with Input methods ? How so ? You mean principally or programatically ? I showed you how I used it, configured keyboard as desired and had a working keyboard switcher. But there are errors recorded in the background that devs should look at ! Btw, I used this method under GNOME 2 until recently and had not errors logged. So ? Can you pass it to upstream LXDE devs so they can fix it ? I documented it for you already. What else can I do ? JB (In reply to comment #8) > Obviously, I did not use manual keyboard layout /switcher config as it requires > manual creation of xorg.conf in a generic way, which is discouraged as X is > now on my Intel graphics card system in "modesetting" and xorg.conf is not > utilized any more. You don't need to create a whole xorg.conf file but only a drop-in for xorg.conf.d. This file only contains the XkbOptions, the rest will be autoconfigured. > Now, the wiki you refer to refers in turn to this guide which is dated > "The XKB Configuration Guide > ... > 25 November 2002" > - we are in the year 2011. > Yes, the guide is valid but it is a generic guide for manual configuration as > it used to be done in the past. For XkbOptions manual configuration is still required. The system can get information about the hardware or input devices and then configure X accordingly, but the system cannot configure any options if you don't tell it what you want. > Today I have a desktop with GUI and tools LXDE provides as described above to > do this keyboard config and much, much more. > Why do you tell me to use ancient and generic config method instead ? > Because the wiki says this ? Yes, the wiki says that it lxpanel cannot add keyboard layout but only switch between them if they are already configured in X itself. > "Input methods > This is another issue and the setup could be distro-specific." > What do you mean by "another issue" ? > Do you say you are not comfortable with Input methods ? How so ? You mean > principally or programatically ? I only said we need to treat input methods and keyboard configuration as two separate issues for troubleshooting. Please completely disable all input methods while testing to eliminate any possible side effects. > I showed you how I used it, configured keyboard as desired and had a working > keyboard switcher. But there are errors recorded in the background that devs > should look at ! I agree they should look at it but first we need to provide more troubleshooting. > Btw, I used this method under GNOME 2 until recently and had not errors logged. This is because gnome-settings-deamon supports adding XKB and lxsession not. And GNOME also has another input method framework, one more reason to disable input methods for testing purposes. > So ? Can you pass it to upstream LXDE devs so they can fix it ? > I documented it for you already. What else can I do ? 1. Provide your ~/.config/lxpanel/LXDE/panels/panel file 2. Provide your /etc/sysconfig/keyboard. 3. Configure keyboard switching as suggested and check if it works in LDXDE. 4. Check if it works in plain X with no xsettings manager running, for example an openbox session. 5. Provide the whole startx.log Once I have all the required info and had time to look at it, I can forward the bug to the developers. But don't expect too much: lxpanel is basically unmaintained after Marty has left LXDE. (In reply to comment #9) > (In reply to comment #8) > > Obviously, I did not use manual keyboard layout /switcher config as it requires > > manual creation of xorg.conf in a generic way, which is discouraged as X is > > now on my Intel graphics card system in "modesetting" and xorg.conf is not > > utilized any more. > > You don't need to create a whole xorg.conf file but only a drop-in for > xorg.conf.d. This file only contains the XkbOptions, the rest will be > autoconfigured. > > > Now, the wiki you refer to refers in turn to this guide which is dated > > "The XKB Configuration Guide > > ... > > 25 November 2002" > > - we are in the year 2011. > > Yes, the guide is valid but it is a generic guide for manual configuration as > > it used to be done in the past. > > For XkbOptions manual configuration is still required. The system can get > information about the hardware or input devices and then configure X > accordingly, but the system cannot configure any options if you don't tell it > what you want. > > > Today I have a desktop with GUI and tools LXDE provides as described above to > > do this keyboard config and much, much more. > > Why do you tell me to use ancient and generic config method instead ? > > Because the wiki says this ? > > Yes, the wiki says that it lxpanel cannot add keyboard layout but only switch > between them if they are already configured in X itself. > > > "Input methods > > This is another issue and the setup could be distro-specific." > > What do you mean by "another issue" ? > > Do you say you are not comfortable with Input methods ? How so ? You mean > > principally or programatically ? > > I only said we need to treat input methods and keyboard configuration as two > separate issues for troubleshooting. Please completely disable all input > methods while testing to eliminate any possible side effects. > > > I showed you how I used it, configured keyboard as desired and had a working > > keyboard switcher. But there are errors recorded in the background that devs > > should look at ! > > I agree they should look at it but first we need to provide more > troubleshooting. > > > Btw, I used this method under GNOME 2 until recently and had not errors logged. > > This is because gnome-settings-deamon supports adding XKB and lxsession not. > And GNOME also has another input method framework, one more reason to disable > input methods for testing purposes. > > So ? Can you pass it to upstream LXDE devs so they can fix it ? > > I documented it for you already. What else can I do ? > > 1. Provide your ~/.config/lxpanel/LXDE/panels/panel file > 2. Provide your /etc/sysconfig/keyboard. > 3. Configure keyboard switching as suggested and check if it works in LDXDE. > 4. Check if it works in plain X with no xsettings manager running, for example > an openbox session. > 5. Provide the whole startx.log > > Once I have all the required info and had time to look at it, I can forward the > bug to the developers. But don't expect too much: lxpanel is basically > unmaintained after Marty has left LXDE. Look, I am a user, I can not spend so much time debugging a problem that I already described and documented and that can be recreated by the programmer fully on her own machine. You can not expect the user to do programmer's work - I have already done more than majority of desktop users would ever dream to provide to a program maintainer. I understand that I should do it on their LXDE bug tracker site (we cleared already in another bz report conversation that I should pass the bugs directly to upstream LXDE crew instead of thru the package maintainer) . JB (In reply to comment #10) > Look, I am a user, I can not spend so much time debugging a problem that > I already described and documented and that can be recreated by the programmer > fully on her own machine. > You can not expect the user to do programmer's work - I have already done more > than majority of desktop users would ever dream to provide to a program > maintainer. Look, I am a maintainer and I maintain ~ 150 packages in my limited spare time. The developers also code in their spare time and PCMan is a busy person. He works 50-60 hours a week as doctor in a hospital and his patients need him. None of us gets paid for our work. The users on the other hand get something they can use for free. This being said we need the users to help us debugging the problems. I cannot reproduce the problem you have and I cannot set up an environment just for testing, so I rely on you. This is how community works. Jurek, without the info I requested in comment 9 there is not much I can do for you. You thing you have already done a lot, however this is not enough to debug the problem. Without this info I cannot forward the bug report upstream. I am pretty sure upstream will ask you to provide similar information. Did you try an xorg.conf.d snipplet in the meantime. Try something like Section "InputDevice" Identifier "Keyboard0" Option "XkbLayout" "layout1,layout2" Option "XKbOptions" "grp:alt_shift_toggle" EndSection I guess you should already have /etc/X11/xorg.conf.d/00-system-setup-keyboard.conf, so you can add the requried options there. Alternatively you can also add setxkbmap -layout "layout1,layout2" -option "grp:alt_shift_toggle" to ~/.config/lxsession/LXDE/autostart before lxpanel is started. Please let me know if this helps. (In reply to comment #12) > Jurek, without the info I requested in comment 9 there is not much I can do for > you. > > You thing you have already done a lot, however this is not enough to debug the > problem. Without this info I cannot forward the bug report upstream. I am > pretty sure upstream will ask you to provide similar information. > > Did you try an xorg.conf.d snipplet in the meantime. Try something like > > Section "InputDevice" > Identifier "Keyboard0" > Option "XkbLayout" "layout1,layout2" > Option "XKbOptions" "grp:alt_shift_toggle" > EndSection > > I guess you should already have > /etc/X11/xorg.conf.d/00-system-setup-keyboard.conf, so you can add the > requried options there. > That file's edits can be lost, so not suitable. > Alternatively you can also add > > setxkbmap -layout "layout1,layout2" -option "grp:alt_shift_toggle" > > to ~/.config/lxsession/LXDE/autostart before lxpanel is started. > > Please let me know if this helps. See attached keyboard-layout-switch-problem.txt Well, it does not work. I can not switch layouts: - by clicking on switcher in panel - by left_alt+shift (or any other combinations, like alt_gr+shift, etc) You mentioned in comment #9: > 4. Check if it works in plain X with no xsettings manager running, for > example an openbox session. I do not know what you mean - how do I set up these conditions ? JB Created attachment 505406 [details]
test results keyboard-layout-switch-problem
(In reply to comment #13) > (In reply to comment #12) > > Alternatively you can also add > > > > setxkbmap -layout "layout1,layout2" -option "grp:alt_shift_toggle" > > > > to ~/.config/lxsession/LXDE/autostart before lxpanel is started. > > I forgot to ask about it: this file ~/.config/lxsession/LXDE/autostart does not exist. Should it then be created for that purpose ? What man page describes it ? JB (In reply to comment #13) > > I guess you should already have > > /etc/X11/xorg.conf.d/00-system-setup-keyboard.conf, so you can add the > > requried options there. > > > > That file's edits can be lost, so not suitable. As long as you dont use system-setup-keyboard it wont be overwritten, so for testing it will do. Alternatively you can also follow my initial advice to add > See attached keyboard-layout-switch-problem.txt Unfortunately this file doesn't include info from the X server. > You mentioned in comment #9: > > 4. Check if it works in plain X with no xsettings manager running, for > > example an openbox session. > I do not know what you mean - how do I set up these conditions ? If you are running LXDE you already have openbox installed. Just start openbox or openbox-session instead of startlxde. (In reply to comment #15) > I forgot to ask about it: > this file ~/.config/lxsession/LXDE/autostart does not exist. > Should it then be created for that purpose ? The global config file is /etc/xdg/lxsession/LXDE/autostart, copy it to ~/.config/lxsession/LXDE/autostart and add your tweaks there. > What man page describes it ? No manpage, but /usr/share/doc/lxsession-0.4.5/README I am currently very busy but I will get back to you. Please also have a look at bug 662574. OK. I got it working. Section "InputClass" Identifier "Built-in Keyboard" MatchIsKeyboard "on" Option "XkbModel" "pc105+inet" Option "XkbLayout" "us,pl" Option "XKbOptions" "grp:alt_shift_toggle" EndSection The reason that Section "InputDevice" did not work is explained here: # xorg.conf(5): # INPUTDEVICE SECTION # ... If hotplugging is # enabled, InputDevice sections using the mouse, kbd and vmmouse driver # will be ignored. which is the case, e.g.: $ grep -i hotplug /boot//config-2.6.38.8-32.fc15.i686 CONFIG_HOTPLUG=y ... But it would be still good for LXDE to have a GUI application to confgure multiple keyboard layouts for switching between. How about making a request-for-enhancement to LXDE crew ? LXDE has to grow up and become more professional. JB Thanks for the feedback. I have added a paragraph about configuration or alternative keyboard layouts to the LXDE page in the Fedora Project wiki, see https://fedoraproject.org/wiki/LXDE#Configure_alternative_keyboard_layouts There also is a bug for having this functionality in lxinput at https://sourceforge.net/tracker/index.php?func=detail&aid=3050410&group_id=180858&atid=894872 I think this is all we can do here so I am closing this bug UPSTEAM. |
Created attachment 502820 [details] startx.log Description of problem: There is an error on LXDE startup. Version-Release number of selected component (if applicable): lxpanel.i686 0.5.6-2.fc15 @koji-override-0/$releasever How reproducible: Start LXDE in text mode. $ alias alias startx='/usr/bin/startx -- -nolisten tcp > ~/.startx.log 2>&1' Steps to Reproduce: 1. $ startx 2. 3. Actual results: See attachments: startx.log, lxde-startup.png. Expected results: No error. Additional info: