-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't set up manual location, it says there's a malformed argument #694
Comments
Here's an update. This may or may not be related. It might be an entirely different issue. But the lack of methods definitely doesn't help it work. I tried running Redshift in terminal without using the config file. I entered more or less the same parameters:
Location not mentioned, although temperatures are what I gave it. On a side note, since this isn't in the manual printed with Okay, so what methods are there?
Well, that doesn't sound very good. Plus, it definitely shouldn't be the only method. I remember something like "randr"? But I tried running while specifying that this method should be used. Lo and behold, Redshift ran. It showed the correct location and temperature, but of course, didn't change the temperature of the display, so it was pretty useless. Also, while it was running, I couldn't give any commands in the terminal. There wasn't the usual "user@computername:~$" at the beginning, just nothing, and I could add new lines or whatever and it didn't do anything until I closed Redshift. |
I had the same problem. I found the solution here: https://gist.github.com/bcomnes/4243805 by looking at the comment of Roald87 who had the same problem too:
|
If you're building Redshift from source you have to make sure that you compile one or more adjustment methods, otherwise you'll end up with just "dummy" and the "No more methods to try" error. If you don't know how to do this, I'd suggest sticking with the official Ubuntu packages. |
Finally, after nearly a month, I got a reply! If it's so simple, why couldn't it happen sooner? @pietro14 there are no spaces after the numbers in my config file. @jonls Well, the instructions I used didn't mention it. I wonder how the app works for that guy. Obviously I don't know, because I didn't find it mentioned anywhere. Is it described in some file how to do it (and mentioned that you need it at all)? I would love to use the packages provided by Ubuntu, but YOU yourself told me to upgrade Redshift to the newer 1.12 version if I wanted to use dusk-time and dawn-time. Unfortunately, building from source is the only way to do it. I found an issue where method was mentioned, #381 and tried using the advice there. I added it to the instructions I used:
Adding "--enable-randr". Then I installed it again, but the malformed argument error still happens, and the only method is still dummy. |
Great. I installed ALL the dependencies I could listed in the old travis.yml and hacking.md, the latter of which is linked to in several places, but not available, because there's no such file in the master branch currently. I found it in the older version branch. Then I went into the Redshift folder and used Now, the malformed argument problem remains. |
I copied the sample config file and only changed the numbers. It seemed to work. However, when I ticked the Autostart option, I started having problems. Also, I thought I could run Redshift using the icon in the "Show Applications" list, but it doesn't run with the same settings, it would seem. Just to be sure, I used the Terminal: Okay it's not funny, I did it again and it's confirmed: I did use nohup so that I could close the Terminal. Redshift runs while Terminal is running. Then I close Terminal, and there's a NEW window (only appearing when closing Terminal), saying "Failed to run Redshift" and "Waiting for initial location to become available...". Closing the window causes the Redshift icon to disappear, but the temperature of the screen stays at what Redshift set it. What's more: if I run it again, the screen becomes redder and redder, even though there is no Redshift process running (and there's no icon, because it "failed" to run), and while it's successfully running, it shows the temperature given in the config file – even though it very clearly isn't that temperature any more. |
BTW, my environment is Linux Mint 18.3 Cinnamon x64, redshift1.12 compiled from the source codes |
|
|
Mmm, nope! I tried mirror and only external. It's still on screen 0. So I think it requires setting up a new screen. I'll check out your link and see it there's an answer there. |
Finally, i got a term multi-head X refered to the multi-screen case. Setting the xorg.conf should be the correct way. I followed the instructions but met another problem. When using |
I just ran into the same problem. Strangely, the position of where you put the manual coordinates in the config file matters. I had to put it after
|
I can attest to this as a workaround. I was using the redshift.conf file linked to by Mario-paul which was throwing the Moving the block to the end of the file, incidentally after the |
Which version of Redshift are you running? I think I messed around with the order of my redshift.conf file, but since I didn't use manual coordinates it worked fine for me. Sorry! I grabbed the latest 1.12 conf file from this repo and updated my Gist. It should work perfectly now. |
Guys, I found a problem with my redshift.conf when selecting a manual provider and gives me |
Describe the bug
With help from my friend better acquainted with Linux, I think I managed to install version 1.12. I put a config file in the folder: .config/redshift/redshift.conf. It is based on the sample config file and I only changed numbers, taking care to keep the formats etc. When I tried to run it, two things happened: it had a problem with there not being a transient parent
Gtk-Message: 22:53:03.237: GtkDialog mapped without a transient parent. This is discouraged.
and this:I commented the elevations (which worked in the older version and I used them!) and perhaps it doesn't work because there isn't a location to refer to. But that's the problem: the manual location is set.
I'm fairly sure it's all as it should be. At first I tried lat=52.26 and lon=20.85, I tried with commas instead of points, finally with whole numbers as seen above, and none of these worked. They all show the same errors:
At the beginning of the file, there's [redshift] and I wondered it it would help if it said [redshift-gtk], but it just gives more information: "trying manual location provider", and then the same thing happens anyway. What's going on? Why can't I set the location? Also, when I used -l list, the only available option is manual.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Redshift runs, accepting the location (and all the other) settings, changing the temperature of the screen.
Error output/logs/screenshots
![screenshot from 2018-12-12 23-32-12](https://user-images.githubusercontent.com/26997029/49903137-7651ed00-fe66-11e8-91ad-05decd0a2d57.png)
Gtk-Message: 23:31:57.273: GtkDialog mapped without a transient parent. This is discouraged. Malformed argument. Failed to set manual option. Try '-l manual:help' for more information.
Software versions (please complete the following information):
Here's my full config file, changed to .txt because GitHub didn't want it: redshift.txt
Also, why does "Try '-l manual:help' for more information." start the quote with ` and ends it with ' ?
The text was updated successfully, but these errors were encountered: