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

    • 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
    • I made a new Cinematic/Trailer for the game, this will be the intro, still a work in progress!  I also updated the Steam page with a ton of new screenshots! 👀 https://store.steampowered.com/app/3925340/Incoherence_Dark_Rooms/  
    • Closed-loop cooling and a custom 800G network protocol let the $7.3B campus run as one AI training machine. Microsoft confirmed June 23, 2026, that its Fairwater campus in Mount Pleasant, Wisconsin, is fully operational — and the engineering behind it makes the facility something fundamentally different from every data center that came before it. Where conventional cloud infrastructure racks up general-purpose servers and parcels out workloads to each one independently, Fairwater links hundreds of thousands of NVIDIA GB200 Blackwell GPUs into a single, coherent cluster using a two-story building design, 800-gigabit-per-second Ethernet fabric, and a proprietary networking protocol co-developed with OpenAI and NVIDIA. The result, according to Microsoft, is the closest thing to a purpose-built AI supercomputer that any company has ever placed in commercial operation. https://www.techtimes.com/articles/319205/20260627/microsoft-opens-fairwater-wisconsin-ai-campus-runs-one-supercomputer-via-800g-ethernet.htm  
  • Recent Achievements

    • Conversation Starter
      jessse3334 earned a badge
      Conversation Starter
    • Reacting Well
      JuvenileDelinquent earned a badge
      Reacting Well
    • One Month Later
      Excellence2025 earned a badge
      One Month Later
    • Week One Done
      Excellence2025 earned a badge
      Week One Done
    • Week One Done
      flexorcist earned a badge
      Week One Done
  • Popular Contributors

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

    Love Neowin? Tell a friend!