feren-OS / Bug-Reporting-Center

The place for reporting Feren OS issues & bugs (April 2019 Snapshot and newer)
15 stars 4 forks source link

Autostart does not execute user scripts at startup #287

Closed Maxquig closed 1 year ago

Maxquig commented 1 year ago

Package Name or Section of Feren OS where this bug resides Where does this bug happen? (e.g.: feren-themer-cinnamon) ___Autostart Login Scripts

Describe the bug A clear and concise description of what the bug is. When using HDMI-0 monitor with a HDMI cable, the default AMD Kaveri Graphic driver for my AMD A10-7700K Radeon CPU/GPU does not support corrections to overscanning and underscanning of my 1920x1080 resolution. I can execute the command: xrandr --output HDMI-0 --panning 1920x1080 --transform 1.085,0,-62,0,1.07,-21,0,0,1.02 to temporarily adjust my monitor's settings. But I want to run that command automatically at startup. So I wrote that command into a bash shell script.

Steps to Reproduce Steps to reproduce the behavior:

  1. Start computer using HDMI cable for monitor.
  2. Select multi-boot to launch FEREN OS
  3. FEREN OS opens with part of the image off from the edges all around the screen.
  4. Manually open a terminal window and run the script "fixoverscan". It looks like this
  5. !/bin/bash

    xrandr --output HDMI-0 --panning 1920x1080 --transform 1.085,0,-62,0,1.07,-21,0,0,1.02

  6. Just like magic, the image on the monitor is fixed.
  7. Launch System Settings - Autostart
  8. Click ADD button
  9. Try both options, Add Application and Add Login Script
  10. Browse to the bash script file "fixoverscan"
  11. It appears to be all set up.
  12. Restart the system on FEREN OS
  13. FAIL!
  14. The image runs off the edge all the way around.
  15. Run the script from the executable file "fixoverscan"
  16. Image gets adjusted perfectly.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here. A quick WEB search indicates Fedora is the source of the bug, but I could find no evidence to indicate Fedora has any plans to fix it.

dominichayesferen commented 1 year ago

Is the file marked as executable?

Maxquig commented 1 year ago

Yes, It is executable by anyone. In fact I execute it in a terminal window to fix my monitor settings. It works well. It seems that EVERY disto but Linux Mint has the same problem. I've tried 12 distros recently. On Saturday, November 5, 2022 at 12:14:26 PM CDT, Dominic Hayes - Feren OS Dev @.***> wrote:

Is the file marked as executable?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Maxquig commented 1 year ago

I think I solved the problem I had. It turns out Autostart did start the script. It was a matter of timing. I added another script that merely launched kcalc. It launched just fine. So I guessed that it was launching my script before Xserver was up and running. So I added a 5 second delay (sleep 5) to the top of my script. That fixed it. I'm running Kubuntu right now, but later today I'll do the same in Feren OS. I'm confident it will work. Then I'll close this bug.

Maxquig commented 1 year ago

That fixed it for FEREN OS too. a 2 second delay is enough.