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

    • Ridiculous claim that the labor cost difference of $6000 annually would increase cost per phone by $200. The employees produce 3 phones per month or what?
    • Sparkle 2.20.1 by Razvan Serea Sparkle is a free, open-source Windows optimization tool designed to make your PC faster, cleaner, and more private. With Sparkle, you can easily debloat Windows by removing unnecessary apps and services, disable Microsoft tracking to enhance privacy, and apply performance tweaks to boost speed. Its cleaner removes junk and temporary files, while every change is safe and fully reversible. Sparkle also features a modern, user-friendly interface with automatic updates, making system maintenance simple. Explore over 39 tweaks, from disabling telemetry and hibernation to optimizing network and game settings, all aimed at customizing and enhancing your Windows experience. Sparkle supports Windows 10 and 11. Sparkle 2.20.1 changelog: You can now change the Animation Direction from Up, Left, or Off. Added configurable animation direction (Up, Left, Off) for improved accessibility Added TTL caching to the system info backend Refactored tweak application flow to await NvidiaProfileInspector Improved IPC listener cleanup to correctly remove specific listeners Fixed online status not updating after successful network requests Updated system info tests to support backend caching Removed electron-toolkit utils dependency in favor of internal is.dev helper Fixed unwanted files and folders being included in application bundles Download: Sparkle 2.20.1 | Portable | ~100.0 MB (Open Source) Links: Sparkle Website | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Never used the G7 Pro, but I've never had a good experience with that style of d-pad and fighting games.
    • And I just bought a seat cushion for my mesh chair. The chair feels nice but the first time I sat in it with boxers, I realized I don't like the feel of mesh on my legs. 😂
    • "This Dell 27 inch 4K 120Hz IPS monitor is really cheap after a very long time" ... Lol.
  • Recent Achievements

    • Dedicated
      Asgardi earned a badge
      Dedicated
    • 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
  • Popular Contributors

    1. 1
      +primortal
      499
    2. 2
      +Edouard
      247
    3. 3
      PsYcHoKiLLa
      153
    4. 4
      Steven P.
      84
    5. 5
      macoman
      64
  • Tell a friend

    Love Neowin? Tell a friend!