Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Refracta with GRUB2. Locales, keyboard boot options problem

Ask your questions here.

Re: Refracta with GRUB2. Locales, keyboard boot options prob

Postby fsmithred » Sun Feb 26, 2017 1:00 pm

Yes!
Code: Select all
chmod 644 /etc/X11/Xsession.d/21-lightdm-language-fix
makes it like the other files in that directory and fixes it so that it goes back to the default language... most of the time. I have six languages configured so that I have something in the greeter's list of languages.

With the permissions set to 755, I could log in with any of those languages by selecting at the greeter, but it wouldn't go back to English unless I edited or removed .dmrc. With permissions set to 644, it will go back to English, but I can no longer get Italian when I select it. The other languages work fine. I can get Italian if I edit .dmrc before logging out, then select Italian in the greeter. If I remove .dmrc before logging out, I can't get Italian if I select it, and .dmrc does not get regenerated. But if I remove .dmrc and then select French, I get French and .dmrc is regenerated. This makes no sense.

I changed it back to 755 and it didn't change the behavior. Changed it back to 644 again, to be consistent with the other files. I have to stop now, or I might be tempted to use a sledge hammer.
User avatar
fsmithred
 
Posts: 2081
Joined: Wed Mar 09, 2011 9:13 pm

Re: Refracta with GRUB2. Locales, keyboard boot options prob

Postby dzz » Sun Feb 26, 2017 1:14 pm

http://paste.debian.net/916910/ (not fully tested) Mind that sledgehammer!
dzz
 
Posts: 647
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Refracta with GRUB2. Locales, keyboard boot options prob

Postby fsmithred » Sun Feb 26, 2017 2:30 pm

It's working again after a reboot. I guess changing language 40-50 times got it confused. It sure got me confused.

Thanks for the updated refracta-lang. I can run that through some tests later.
User avatar
fsmithred
 
Posts: 2081
Joined: Wed Mar 09, 2011 9:13 pm

Re: Refracta with GRUB2. Locales, keyboard boot options prob

Postby dzz » Sun Feb 26, 2017 2:49 pm

Good. Found another lightdm bug: autologin-user-delay timeout doesn't stop when you hit a key, 5 isn't enough time to change anything before it logs in. Buggy as it is, lightdm still seems (for now) the best option for refracta-live. I wouldn't bother with it on an installation.
dzz
 
Posts: 647
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Refracta with GRUB2. Locales, keyboard boot options prob

Postby fsmithred » Mon Feb 27, 2017 1:11 am

The new 1065-refracta-lang seems to be working. I tested it as a hook on a usb, and I testing it in an iso. Booted into Italean, configured a couple more languages, turned off autologin, restarted lightdm and was able to change language with the greeter.

I agree about lightdm. It mostly works ok, and I don't know a better alternative. Are you running ascii/ceres without a display manager? I was not able to get X running without one in ascii. That was a couple months ago.
User avatar
fsmithred
 
Posts: 2081
Joined: Wed Mar 09, 2011 9:13 pm

Re: Refracta with GRUB2. Locales, keyboard boot options prob

Postby fsmithred » Sat Mar 04, 2017 10:56 pm

If someone uses locales= instead of refracta-lang, they should still get the lightdm fix. Haven't tested it yet, but I think this should work.

Added fix_lightdm if locales= is used and switched order of tests.


Code: Select all
       Init ()
{
        # exit if this script is already configured
        if [ -e /var/lib/live/config/refracta-lang ]; then
                exit 0
        fi

        # exit if "locales=" (official live-config parameter) was specified
        if (cat /proc/cmdline|grep -q " locales="); then
                fix_lightdm
                exit 0
        fi

        # exit if "lang=" was *not* specified
        if ! (cat /proc/cmdline|grep -q " lang="); then
                exit 0
        fi

        echo -n " refracta-lang "
}

User avatar
fsmithred
 
Posts: 2081
Joined: Wed Mar 09, 2011 9:13 pm

Re: Refracta with GRUB2. Locales, keyboard boot options prob

Postby dzz » Sun Mar 05, 2017 2:34 pm

This refracta-lang script edit works here.

I don't know if or how differently these lightdm bugs affect Debian (systemd) yet.

No time to do much with unstable lately.
dzz
 
Posts: 647
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Refracta with GRUB2. Locales, keyboard boot options prob

Postby fsmithred » Sun Mar 05, 2017 6:15 pm

Works here, too. It's in the 8.3 isos I uploaded today. I haven't tested on debian lately. And I don't know if systemd-display-manager has replaced lightdm (yet). (Maybe that's Wayland?)

I've got refracta-lang as a separate package now, since it's recommended with refractasnapshot. Anything specific you want in the changelog before I package it again? Or would you rather do it?
User avatar
fsmithred
 
Posts: 2081
Joined: Wed Mar 09, 2011 9:13 pm

Re: Refracta with GRUB2. Locales, keyboard boot options prob

Postby dzz » Sun Mar 05, 2017 10:13 pm

Changelog: Other than this, it works as before.

Code: Select all
* Tidy up and improve readability of code lines.
* Include Xsession.d script to fix lightdm language selector bug.
dzz
 
Posts: 647
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron
suspicion-preferred