Was playing with XrandR, now can't login :(


Recommended Posts

Long story short, I was messing around with XrandR and creating a few custom screen resolutions - a couple well beyond the native res of my monitor (was testing something). I had read that all these changes would be lost on next reboot, and would only stick around if I edited the LightDM/X.org config files and added it myself there.

That's why I thought it was safe - but no such thing :(

What happens now is, Ubuntu 12.04 just throws me back to the login screen regardless of the DE I choose (Gnome 3, Gnome classic, Classic with no effects, Unity) none of them work - which means my profile, or rather stuff related to display in my profile, is buggered.

Luckily, I had created another User a while ago, and I'm able to log-in using that account. Which means I should be able to recover my profile somehow - and I need help. I tried this fix here, but it didn't work : http://ubuntuforums.org/showthread.php?p=12036406#post12036406

Please help me recover my main user profile :(

I believe that the following should work (but I have not tested it):


rm -rf /home/your_user_profile/.gconf/apps/gnome_settings_daemon/xrandr
[/CODE]

I could kiss you right now :D

I didn't have a folder called gnome_settings_daemon or xrandr for that matter over there, BUT I found a few files from my earlier XrandR messings in that location (.rez files with custom resolutions) and deleted them. I'm able to log back in to my original profile flawlessly now.. no issues, ****'s back to normal :p

Thanks again!

I'm glad to hear that you solved your problem. For future reference, a good way to find your configuration settings for a particular program (assuming you know its name and it names its configuration files logically) is as follows:


find ~ | grep -i 'xrandr'
[/CODE]

Also note that '~' in the above command denotes your home directory. It may be replaced with any path you want to search. For example, if I was logged in as root and wanted to search for the xrandr settings in my profile, I could replace '~' with '/home/xorangekiller' in the above command.

Before anyone points this out: yes, I could have used find's '-iname' switch instead of piping to 'grep -i'. However, I find that '-iname' will sometimes fail to find things that grep will not. I don't really want to debate it (unless anyone can give me a good technical answer as to why that is; I'm somewhat curious).

I'm glad to hear that you solved your problem. For future reference, a good way to find your configuration settings for a particular program (assuming you know its name and it names its configuration files logically) is as follows:


find ~ | grep -i 'xrandr'
[/CODE]

Also note that '~' in the above command denotes your home directory. It may be replaced with any path you want to search. For example, if I was logged in as root and wanted to search for the xrandr settings in my profile, I could replace '~' with '/home/xorangekiller' in the above command.

Before anyone points this out: yes, I could have used find's '-iname' switch instead of piping to 'grep -i'. However, I find that '-iname' will sometimes fail to find things that grep will not. I don't really want to debate it (unless anyone can give me a good technical answer as to why that is; I'm somewhat curious).

Cheers, that's quite useful mate :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Deal for those who want 1900 size electronics in their house? with 2026/7 hardware mhm.. not nice
    • Cheap labour, the same as the U.K. China pays their people pittance.
    • Those people that come over here on boats are already in a safe country, if they want to come over here then do so correctly though the right channels. I was born in the U.K, my family that came over here came so via the proper means. My partner came here via the correct channels, she also became a British citizen, she knows more about this country than most of them that was born here, including myself, she worked hard to do what she does. She will stick up for this country and have done a few times, when people from her own part of world have put the U.K down. We are not going to agree, all I said to start with is that maybe Trump has the right idea with this America first thing and maybe we should start doing the same. Maybe not as drastic as what he is doing, but we do need to sort this country out, we need to sort out tech instead of relying on the U.S and others. Again you have not shown why you are so annoyed that we have left the E.U and this is what it is all about? If you don't live in the U.K and live in the E.U are you annoyed that we left your little club? If you live in the U.K and is pro-E.U, then fair enough then I can see how it annoys you. Are you one of these people who lives in the U.K and have a holiday chalet in the E.U and can now only stay there for so long? If so, then that is bad luck. As I have posted before, I have no problem with people coming here to work, as long as they do if via the proper channels. We are out of the E.U, people voted out, and maybe if more people had voted instead of sitting on their backsides the results would have been different. But they like the E.U and our government thought no we would not vote to leave. How wrong they were, surprised me. I expected to wake up in the morning and hear on the radio that we voted to stay. As I said, we are out and have been for 10 years, we are not going to go back in anytime soon if we ever do, so we all need to make the best of how things are. Anyway, this is supposed to be a tech site.
    • Tim Cook: "The US over time began to stop having as many vocational kinds of skills." What's the point of wasting time getting those skills if you can't get a job with them? Good Lord, maybe he and his cohort of CEO's who exported all these jobs to China should just shut the f**k up :D
  • Popular Contributors

    1. 1
      +primortal
      502
    2. 2
      +Edouard
      215
    3. 3
      PsYcHoKiLLa
      150
    4. 4
      Steven P.
      74
    5. 5
      macoman
      62
  • Tell a friend

    Love Neowin? Tell a friend!