[Solved] Redshift.service (Making redshift autostart)

Hey Guys.
I trying to get redshift to autostart. Theres's no official .service file (I can't find one anyway), so I wrote one my self, but it dosen't work. I've looked through the systemd wiki entry, but I don't really see what I'm doing wrong. The ExecStart command works fine in terminal.
redshift.service -> http://pastie.org/5436557
Output of "systemctrl status redshift.serivce" -> http://pastie.org/5436560
From the output I looks like the process failes to execute, but I don't get why. I made it run after SLiM, so all x processes should be running.
Last edited by Mhyperbolic (2012-11-26 12:42:22)

falconindy wrote:I dont know what redshift is but it sounds like its something that needs knowledge of your X screen and session to work. Starting it from PID 1 guarantees that it knows nothing about either of these. Why not start it from your own X startup script?
I didn't now that was a consideration, but of course it makes sense.
I works now.  Thanks for the help!

Similar Messages

  • How to solve no service in the carrier

    Anyone know how to solve 'no service' in the carrier? I never do jailbreak and encounter this problems frequently. I requested to get replacement of iphone4 and stil having the same problem. I gotta reset all setting frequently as well. Is the sim card, hardware or software cause this problem?

    The "No Service" message appears in the upper left corner of the display
    Try toggling Airplane mode "on" and "off". Wait five seconds between the off and on modes.
    If that doesn't work, try another location.
    If another location works, but the original location still does not, contact your carrier to report the issue.
    If the message is present in all locations, have the iPhone serviced.
    Is a quote from: iPhone: Hardware troubleshooting

  • I would like to get data analysis for solving statistic and making graphs, but this function is not in add-in. How should I do? I also set up microsoft office for mac 2011.

    I would like to get data analysis for solving statistic and making graphs, but this function is not in add-in. How should I do? I also set up microsoft office for mac 2011.

    Microsoft didn't include that with the 2011 version.
    There is a third-party application that substitutes for the add-in: http://www.analystsoft.com/en/products/statplusmac/
    They also have a limited, free version.

  • [SOLVED] Redshift starts twice & keeps adding to ~/.config/autostart/

    This is starting to piss me off... Rebooting the computer will get me a brand new "~/.config/autostart/gtk-redshift.desktop" file, which starts to conflict with the other instance from my autostart file (I'm using Openbox):
    gtk-redshift -l 44.42:26.10 -b 1.0 -g 1.0 -t 6500:3800 -m vidmode &
    The side effect of having two instances (both showing in the tray) is that the screen starts to flicker, even in broad daylight.
    I'm thinking that maybe I should downgrade the redshift package.
    Last edited by DSpider (2012-12-05 14:27:25)

    Thanks. I uncommented the entry from the Openbox autostart file and created a "~/.config/redshift.conf" file:
    ; Global settings
    [redshift]
    temp-day=6500
    temp-night=3800
    transition=1
    gamma=1.0
    location-provider=manual
    adjustment-method=vidmode
    ; The location provider and adjustment method settings
    ; are in their own sections.
    [manual]
    lat=44.42
    lon=26.10
    ; In this example screen 1 is adjusted by vidmode. Note
    ; that the numbering starts from 0, so this is actually
    ; the second screen.
    [vidmode]
    screen=0
    Works ok now.
    The only thing that bothers me is that even if I right click the tray icon and check or uncheck "Autostart", it still starts automatically from "~/.config/autostart". But that's probably a bug or something. Oh, well... Marking it as solved.
    Last edited by DSpider (2012-12-05 14:34:51)

  • [solved] "adsl.service" does not start with "netctl" sometimes

    I recently moved from "netcfg" to "netctl".
    Solution. I copied "/usr/lib/systemd/system/adsl.service" into a new service and added a line
    After=[email protected]
    under "[Unit]"

    It goes definitely against any logic.
    The service file looks good, but I've copied it to /usr/lib/systemd/system/bdsl.service. Same contents - and the new one launches succesfully.
    I've deleted the original ...adsl.service file, verified that it disappeared, copied it back from the new bdsl.service file, and it still does not launch.
    [EDIT]
    I've erased the drive, restored the system from a 1 week old backup, started it - everything worked. Then I'v updated the whole system, including the rp-pppoe package, and the adsl service is failing again.
    Downgrading solves the problem. Should I file a bug report?
    Last edited by scar (2013-06-01 10:14:41)

  • [SOLVED] problem in making a daemon for network auto-connection

    I want to make a daemon that when I start my computer and my router is not already available, to auto connect to my router when it becomes available later without rebooting
    So I thought in making a script and running it as a daemon which will hopefully solve my problems. The thing is I'm having a hard time isolating only the routers ip address. Here's how I thought the script should look like
    #!/bin/sh
    anet="$(ifconfig | awk "/router_address/{print $field}")"
    if [ $anet = "router_address" ]
    then
    /etc/rc.d/network restart
    fi
    But although awk isolates the line with my router address it doesn't recognizes any field. Any value I assume to $field doesn't isolates anything so I could guess the right field (or fields) for the router's ip address.
    Last edited by I'mGeorge (2011-03-31 09:46:05)

    litemotiv wrote:Not a direct answer to your question, but have you considered using Netcfg for this? https://wiki.archlinux.org/index.php/Netcfg
    thx a bunch, all I needed was ifplugd daemon. That script I thought about was a bad idea anyway 'cause continuous starting or restarting your network can't be good so I had to work more on it while ifplugd made everything happen clean and easily.

  • [SOLVED] I'd like to autostart X when I log in on concrete tty

    Hi all.
    Supposing I use a marginal ortodox weird window manager (notion - ion3 fork) and a relatively weird keyboard layout. Furthermore, when I'm using my laptop, sometimes I don't launch X, so I start X manually most of the time. What I want is X autostarted in background with gdm and fancy stuff for login (and a qwerty-layout) to allow someone else to use my computer if necessary.
    I also would like that when I loggin' in on tty4(or any other concrete virtula terminal) there would be another X server with my .xinitrc (not related to the one already started).
    Okay, let's drop that stuff with different keyboard layouts, I figured out I can just dump my scheme in xmodmap and load it in .xinitrc, so that part of the problem is solved. I also can figure out how to start multiple X servers. What I really unable to do is determine what is my current tty (although that looks to be really simple). Is there any other ways aside from grepping who's pipe output?
    I stumbled upon this concrete blog post (in russian) http://iportnov.blogspot.com/2007/01/su … ck_31.html that covers the idea of multiuser computer usage. There is a snippet of bash code, that doesn't work for me.
    case "$(basename `tty`)@$HOST" in
    tty4@portnov) runx
    logout ;;
    esac
    Any ideas?
    // also, shouldn't this post will be better placed in "try this" subforum?
    Last edited by cra (2011-09-02 12:10:11)

    I guess that simple
    [[ $(basename `tty`) == "tty4" ]] && startx -- :104 && logout
    at the very end of your ~/.bashrc should do the trick.
    Edit: ...or better at the end of ~/.bash_profile to affect only login shells.
    Last edited by laloch (2011-08-30 17:37:22)

  • [SOLVED] Opendias service doesn't start

    Hello,
    I've just installed the package opendias built from the AUR. But I'm facing 2 problems:
    1) I cannot start the service using systemctl. The binary starts fine by running it directly.
    2) I also have issues finding the scanner that works properly using SANE.
    My user was added to the opendias group. Any idea on how to solve this? Thank you in advance.
    [paulo@SonyVaio ~]$ systemctl status opendias.service -l
    ● opendias.service - OpenDIAS (Document Imaging Archive System)
    Loaded: loaded (/usr/lib/systemd/system/opendias.service; enabled)
    Active: failed (Result: start-limit) since Sáb 2014-05-10 23:24:05 WEST; 1min 32s ago
    Process: 3005 ExecStart=/usr/bin/opendias (code=exited, status=1/FAILURE)
    Mai 10 23:24:05 SonyVaio systemd[1]: Failed to start OpenDIAS (Document Imaging Archive System).
    Mai 10 23:24:05 SonyVaio systemd[1]: Unit opendias.service entered failed state.
    Mai 10 23:24:05 SonyVaio systemd[1]: opendias.service holdoff time over, scheduling restart.
    Mai 10 23:24:05 SonyVaio systemd[1]: Stopping OpenDIAS (Document Imaging Archive System)...
    Mai 10 23:24:05 SonyVaio systemd[1]: Starting OpenDIAS (Document Imaging Archive System)...
    Mai 10 23:24:05 SonyVaio systemd[1]: opendias.service start request repeated too quickly, refusing to start.
    Mai 10 23:24:05 SonyVaio systemd[1]: Failed to start OpenDIAS (Document Imaging Archive System).
    Mai 10 23:24:05 SonyVaio systemd[1]: Unit opendias.service entered failed state.
    [paulo@SonyVaio ~]$ whereis opendias
    opendias: /usr/bin/opendias /usr/lib/opendias /etc/opendias /usr/etc/opendias /usr/share/opendias
    Last edited by BullGates (2014-05-11 00:11:19)

    Update: service start solved. the database and the log files were set as root, after fixing it to the user opendias it works fine.
    Regarding 2) when I use scanimage -L, the output is:
    [paulo@SonyVaio ~]$ scanimage -L
    device `epkowa:net:192.168.1.67:1865' is a Epson Stylus NX330/SX430W/TX430W/ME OFFICE 570W Series flatbed scanner
    but if I issue a command sane-find-scanner it doesn't seem to find the scanner. Seems like a problem from opendias

  • [SOLVED]sensord.service fails to start

    Hi there!
    I made a clean Arch install a couple of days ago and I've had problems trying to get sensord to work apropriately. I've went through the troubleshooting of this particular service and googled a lot the last couple of days about this topic but I found nothing really useful (or nothing that I could really understand. Maybe my search terms are not so effective ).
    # systemctl status sensord -l
    [sudo] password for daniel:
    ● sensord.service - Log hardware monitoring data
    Loaded: loaded (/usr/lib/systemd/system/sensord.service; enabled)
    Active: failed (Result: exit-code) since mié 2014-09-03 09:14:04 CLT; 7min ago
    Process: 4231 ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon (code=exited, status=127)
    sep 03 09:14:04 Ophiel sensord[4231]: /usr/sbin/sensord: error while loading shared libraries: librrd.so.4: cannot open shared object file: No such file or directory
    sep 03 09:14:04 Ophiel systemd[1]: sensord.service: control process exited, code=exited status=127
    sep 03 09:14:04 Ophiel systemd[1]: Failed to start Log hardware monitoring data.
    sep 03 09:14:04 Ophiel systemd[1]: Unit sensord.service entered failed state.
    This is just a minor annoyance. My system performs great and I have no issues with it. It just annoys the heck out of me to see a service failing in my start up screen.
    I don't know if hardware specs or other logs are useful. But if you need more info, just let me know
    Thanks in advance.
    Last edited by Silex89 (2014-09-03 14:16:15)

    Silex89 wrote:My system performs great and I have no issues with it
    Hmmm ...
    Silex89 wrote:This thread is SOLVED.
    Really ? Maybe there are services working but unrequested, have a look here:
    https://bbs.archlinux.org/viewtopic.php?id=186244
    I thought, that you explicitly installed sensord. Do you need a round robin database to visualize graphically your measured values in Nagios e.g. ?
    Last edited by midixinga (2014-09-03 18:06:06)

  • [SOLVED] Netcfg.service not starting with systemd

    I have net-auto-wireless.service enabled and working, but when I try to start netcfg.service, it gives the error:
    Job for netcfg.service failed. See 'systemctl status netcfg.service' and 'journalctl' for details.
    "systemctl status netcfg.service" gives me:
    netcfg.service - Netcfg multi-profile daemon
    Loaded: loaded (/usr/lib/systemd/system/netcfg.service; enabled)
    Active: failed (Result: exit-code) since Thu, 04 Oct 2012 13:43:05 -0400; 5min ago
    Main PID: 1510 (code=exited, status=1/FAILURE)
    CGroup: name=systemd:/system/netcfg.service
    Oct 04 13:43:05 arch systemd[1]: Starting Netcfg multi-profile daemon...
    Oct 04 13:43:05 arch netcfg-daemon[1510]: No recorded netcfg state to restore
    Oct 04 13:43:05 arch systemd[1]: Failed to start Netcfg multi-profile daemon.
    And the output of "journalctl" is:
    Oct 04 13:43:05 arch netcfg-daemon[1510]: No recorded netcfg state to restore
    Oct 04 13:43:05 arch systemd[1]: netcfg.service: main process exited, code=...=1
    Oct 04 13:43:05 arch systemd[1]: Unit netcfg.service entered failed state.
    Am I missing something in setting it up?  I followed the netcfg wiki as closely as I could.
    Last edited by mellowmaroon (2012-10-04 18:46:16)

    Good call, I changed it from "last", to the profile I use in /etc/network.d that net-auto-wireless autoconnects to.  It failed for a different reason after changing the NETWORKS in /etc/conf.d/netcfg, because net-auto-wireless was still running.
    But it works now, thanks for the help!
    I wanted to use netcfg instead of net-auto-wireless because I was unable to find a suitable way to connect to available networks that is non-graphical, and I felt like giving netcfg a try and seeing if it's any easier than running "systemctl restart net-auto-wireless.service" every time I want to reconnect.
    Although my question for this thread is solved, is there any way to have netcfg autoconnect to profiles once I am within range?

  • [SOLVED]systemd service doesn't play sound

    I have a bash script which play via 'sox' a sound file. Something like this:
    play someFile -t alsa -q
    I set up a 'systemd --user' timer which calls this script at certain time. The timer is successfully called and the corresponding service is also successfully called and exits with SUCCESS code. The problem is that sound is not heared.
    When the service is called manually from the bash with
    systemctl start mySoundTimer.service
    the sound is played OK.
    The service file is as follows:
    [Unit]
    Description= A sound timer.
    [Service]
    Type=simple
    ExecStart=/usr/bin/bash /path/to/my/script.sh
    I tried several other combinations in ExecStart:
    ExecStart=/usr/bin/bash -c /path/to/my/script.sh
    ExecStart=/usr/bin/bash "-c /path/to/my/script.sh"
    ExecStart=/usr/bin/bash -c "/path/to/my/script.sh"
    No one is working. What can be the cause of the problem?
    EDIT:
    The cause of this is a different timing behaviour of systemd timer as compared to cron which I used before. (It seemingly takes into account the time of the last run and does not run again if it is called in less than the interval between runs specified in the timer file. And I tested the timer by setting the system date to several seconds before the timer's planned times.)
    Last edited by nbd (2014-08-05 20:23:39)

    msthev wrote:$ man systemd.service
    ExecStart=
    Note that this setting does not directly support shell command
    lines. If shell command lines are to be used they need to be passed
    explicitly to a shell implementation of some kind. Example:
    ExecStart=/bin/sh -c 'dmesg | tac'
    Thanks, changing ExecStart line to
    ExecStart=/bin/bash -c '/bin/echo 100 > /sys/class/backlight/intel_backlight/brightness'
    solved the issue. Though I can recall seeing ExecStart lines with direct shell commands.
    Raynman wrote:
    You should look at tmpfiles.d.
    https://wiki.archlinux.org/index.php/Sy … rary_files
    I'll do that, thanks!

  • [solved] systemd services not starting at boot (or at all)

    On my router, some systemd services fail to start at boot.
    The services are :
    adsl (pppoe connetction on the wan interface)
    shorewall (funny again for a router)
    logind (brings up only tty1, and not the others with a 'timeout' error)
    adsl starts fine manually after booting up
    the others don't work, I have to launch shorewall with the old sysvinit rc script (and it works)
    I really don't know, what happened to logind...
    Last edited by scar (2012-11-30 10:20:44)

    cups: avahi client failed
    adsl: timeout (ppp0 running on eth0, the service did not found eth0)
    shorewall: did not work by the systemctl command, only with the old rc script
    I'm not sure if there was an error with logind, but I've had only tty1, not all the others (I have not touched /etc/inittab)
    since this was a very old install (but up to date), I've decided to reinstall the whole thing,
    Everything works
    (But reinstalling does not solve any problem, it erases the problems...)
    Last edited by scar (2012-11-30 10:21:20)

  • [SOLVED] sshd.service won't wait for interface/netcfg at boot

    Problem summary:
    I have a home server that is configured with a static ip configured using netcfg and ifplugd. In the 'unit' section of sshd.service file I have 'After=sys-subsystem-net-devices-eno1.device' meant to let the service wait before the device is up. Ever since upgrading to systemd however at boot  the sshd.service enters failed state. Only after manually issuing 'systemctl start sshd.service' the service will run and I can connect to it from another machine. I  tried adding 'net-auto-wired.service' to the 'After' line but the result is the same.
    /etc/conf.d/netcfg:
    NETWORKS=(myethernet)
    WIRED_INTERFACE="eno1"
    /etc/network.d/myethernet:
    CONNECTION="ethernet"
    DESCRIPTION="A basic static ethernet connection using iproute"
    INTERFACE="eno1"
    IP="static"
    ADDR="192.168.1.5"
    GATEWAY="192.168.1.254"
    DNS=("83.98.255.11")
    /etc/systemd/system/sshd.service:
    [Unit]
    Description=OpenSSH Daemon
    Wants=sshdgenkeys.service
    #After=net-auto-wired.service sys-subsystem-net-devices-eno1.device
    After=sys-subsystem-net-devices-eno1.device
    [Service]
    ExecStart=/usr/sbin/sshd -D
    ExecReload=/bin/kill -HUP $MAINPID
    KillMode=process
    Restart=always
    [Install]
    WantedBy=multi-user.target
    output of 'systemctl status sshd.service'  after boot:
    sshd.service - OpenSSH Daemon
    Loaded: loaded (/etc/systemd/system/sshd.service; enabled)
    Active: failed (Result: start-limit) since Sat 2013-03-09 22:09:38 CET; 3min 28s ago
    Process: 405 ExecStart=/usr/sbin/sshd -D (code=exited, status=255)
    Mar 09 22:09:38 arch-server systemd[1]: Unit sshd.service entered failed state
    Mar 09 22:09:38 arch-server systemd[1]: sshd.service holdoff time over, scheduling restart.
    Mar 09 22:09:38 arch-server systemd[1]: Stopping OpenSSH Daemon...
    Mar 09 22:09:38 arch-server systemd[1]: Starting OpenSSH Daemon...
    Mar 09 22:09:38 arch-server systemd[1]: sshd.service start request repeated too quickly, refusing to start.
    Mar 09 22:09:38 arch-server systemd[1]: Failed to start OpenSSH Daemon.
    Mar 09 22:09:38 arch-server systemd[1]: Unit sshd.service entered failed state
    output of 'journalctl -b | grep sshd'
    Mar 09 22:09:36 arch-server sshd[342]: Set /proc/self/oom_score_adj from 0 to -1000
    Mar 09 22:09:36 arch-server sshd[342]: error: Bind to port 22 on 192.168.1.5 failed: Cannot assign requested address.
    Mar 09 22:09:36 arch-server sshd[342]: fatal: Cannot bind any address.
    Mar 09 22:09:36 arch-server systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
    Mar 09 22:09:36 arch-server systemd[1]: Unit sshd.service entered failed state
    Mar 09 22:09:36 arch-server systemd[1]: sshd.service holdoff time over, scheduling restart.
    Mar 09 22:09:36 arch-server sshd[384]: Set /proc/self/oom_score_adj from 0 to -1000
    Mar 09 22:09:36 arch-server sshd[384]: error: Bind to port 22 on 192.168.1.5 failed: Cannot assign requested address.
    Mar 09 22:09:36 arch-server sshd[384]: fatal: Cannot bind any address.
    Mar 09 22:09:36 arch-server systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
    Mar 09 22:09:36 arch-server systemd[1]: Unit sshd.service entered failed state
    Mar 09 22:09:36 arch-server systemd[1]: sshd.service holdoff time over, scheduling restart.
    Mar 09 22:09:36 arch-server systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
    Mar 09 22:09:36 arch-server sshd[390]: Set /proc/self/oom_score_adj from 0 to -1000
    Mar 09 22:09:36 arch-server sshd[390]: error: Bind to port 22 on 192.168.1.5 failed: Cannot assign requested address.
    Mar 09 22:09:36 arch-server sshd[390]: fatal: Cannot bind any address.
    Mar 09 22:09:37 arch-server systemd[1]: Unit sshd.service entered failed state
    Mar 09 22:09:37 arch-server systemd[1]: sshd.service holdoff time over, scheduling restart.
    Mar 09 22:09:37 arch-server sshd[393]: Set /proc/self/oom_score_adj from 0 to -1000
    Mar 09 22:09:37 arch-server sshd[393]: error: Bind to port 22 on 192.168.1.5 failed: Cannot assign requested address.
    Mar 09 22:09:37 arch-server sshd[393]: fatal: Cannot bind any address.
    Mar 09 22:09:37 arch-server systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
    Mar 09 22:09:37 arch-server systemd[1]: Unit sshd.service entered failed state
    Mar 09 22:09:37 arch-server systemd[1]: sshd.service holdoff time over, scheduling restart.
    Mar 09 22:09:37 arch-server sshd[395]: Set /proc/self/oom_score_adj from 0 to -1000
    Mar 09 22:09:37 arch-server sshd[395]: error: Bind to port 22 on 192.168.1.5 failed: Cannot assign requested address.
    Mar 09 22:09:37 arch-server sshd[395]: fatal: Cannot bind any address.
    Mar 09 22:09:37 arch-server systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
    Mar 09 22:09:37 arch-server systemd[1]: Unit sshd.service entered failed state
    Mar 09 22:09:37 arch-server systemd[1]: sshd.service holdoff time over, scheduling restart.
    Mar 09 22:09:37 arch-server sshd[405]: Set /proc/self/oom_score_adj from 0 to -1000
    Mar 09 22:09:37 arch-server sshd[405]: error: Bind to port 22 on 192.168.1.5 failed: Cannot assign requested address.
    Mar 09 22:09:37 arch-server sshd[405]: fatal: Cannot bind any address.
    Mar 09 22:09:37 arch-server systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
    Mar 09 22:09:38 arch-server systemd[1]: Unit sshd.service entered failed state
    Mar 09 22:09:38 arch-server systemd[1]: sshd.service holdoff time over, scheduling restart.
    Mar 09 22:09:38 arch-server systemd[1]: sshd.service start request repeated too quickly, refusing to start.
    Mar 09 22:09:38 arch-server systemd[1]: Unit sshd.service entered failed state
    Mar 09 22:13:19 arch-server sshd[597]: Set /proc/self/oom_score_adj from 0 to -1000
    Mar 09 22:13:19 arch-server sshd[597]: Server listening on 192.168.1.5 port 22.
    Mar 09 22:13:58 arch-server sshd[603]: Set /proc/self/oom_score_adj to 0
    output of 'ip link':
    eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255
    inet6 (...) prefixlen 64 scopeid 0x20<link>
    ether (...) txqueuelen 1000 (Ethernet)
    RX packets 2399 bytes 176947 (172.7 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 846 bytes 112345 (109.7 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device interrupt 45 base 0x4000
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436
    output of 'systemctl' after issuing 'systemctl start sshd.service' :
    UNIT LOAD ACTIVE SUB DESCRIPTION
    proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
    sys-devices-pci0000:00-0000:00:1b.0-sound-card0.device loaded active plugged /sys/devices/pci0000:00/0000:00:1b.0/sound/card0
    sys-devices-pci0000:00-0000:00:1c.0-0000:01:00.0-net-eno1.device loaded active plugged /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/net/eno1
    sys-devices-pci0000:00-0000:00:1c.1-0000:02:00.0-net-wlp2s0.device loaded active plugged /sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/wlp2s0
    sys-devices-pci0000:00-0000:...d5:1.0-host6-target6:0:0-6:0:0:0-block-sdc-sdc1.device loaded active plugged U3_Cruzer_Micro
    sys-devices-pci0000:00-0000:...d5:1.0-host6-target6:0:0-6:0:0:0-block-sdc-sdc2.device loaded active plugged U3_Cruzer_Micro
    sys-devices-pci0000:00-0000:...-1\x2d5:1.0-host6-target6:0:0-6:0:0:0-block-sdc.device loaded active plugged U3_Cruzer_Micro
    sys-devices-pci0000:00-0000:00:1f.2-host2-target2:0:0-2:0:0:0-block-sda-sda1.device loaded active plugged FUJITSU_MJA2320BH_G2
    sys-devices-pci0000:00-0000:00:1f.2-host2-target2:0:0-2:0:0:0-block-sda-sda2.device loaded active plugged FUJITSU_MJA2320BH_G2
    sys-devices-pci0000:00-0000:00:1f.2-host2-target2:0:0-2:0:0:0-block-sda-sda3.device loaded active plugged FUJITSU_MJA2320BH_G2
    sys-devices-pci0000:00-0000:00:1f.2-host2-target2:0:0-2:0:0:0-block-sda.device loaded active plugged FUJITSU_MJA2320BH_G2
    sys-devices-pci0000:00-0000:00:1f.2-host4-target4:0:0-4:0:0:0-block-sdb-sdb1.device loaded active plugged FUJITSU_MJA2320BH_G2
    sys-devices-pci0000:00-0000:00:1f.2-host4-target4:0:0-4:0:0:0-block-sdb.device loaded active plugged FUJITSU_MJA2320BH_G2
    sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
    sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
    sys-devices-pnp0-00:03-tty-ttyS0.device loaded active plugged /sys/devices/pnp0/00:03/tty/ttyS0
    sys-devices-pnp0-00:04-tty-ttyS1.device loaded active plugged /sys/devices/pnp0/00:04/tty/ttyS1
    sys-devices-virtual-block-dm\x2d0.device loaded active plugged /sys/devices/virtual/block/dm-0
    sys-devices-virtual-block-dm\x2d1.device loaded active plugged /sys/devices/virtual/block/dm-1
    sys-devices-virtual-block-dm\x2d2.device loaded active plugged /sys/devices/virtual/block/dm-2
    sys-subsystem-net-devices-eno1.device loaded active plugged /sys/subsystem/net/devices/eno1
    sys-subsystem-net-devices-wlp2s0.device loaded active plugged /sys/subsystem/net/devices/wlp2s0
    -.mount loaded active mounted /
    dev-hugepages.mount loaded active mounted Huge Pages File System
    dev-mqueue.mount loaded active mounted POSIX Message Queue File System
    home.mount loaded active mounted /home
    media-usbhd\x2dsdc1.mount loaded active mounted /media/usbhd-sdc1
    media-usbhd\x2dsdc2.mount loaded active mounted /media/usbhd-sdc2
    mnt-backup.mount loaded active mounted /mnt/backup
    mnt-data.mount loaded active mounted /mnt/data
    srv.mount loaded active mounted /srv
    sys-kernel-debug.mount loaded active mounted Debug File System
    tmp.mount loaded active mounted /tmp
    var.mount loaded active mounted /var
    systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
    systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
    dbus.service loaded active running D-Bus System Message Bus
    dcron.service loaded active running Periodic Command Scheduler
    [email protected] loaded active running Getty on tty1
    httpd.service loaded active running Apache Web Server
    iptables.service loaded active exited Packet Filtering Framework
    mysqld.service loaded active running MySQL database server
    net-auto-wired.service loaded active running Provides automatic netcfg wired connection
    ntpd.service loaded active running Network Time Service
    rc-local.service loaded active exited /etc/rc.local Compatibility
    rtorrent.service loaded active running rTorrent Service
    sshd.service loaded active running OpenSSH Daemon
    sshguard.service loaded active running Block hacking attempts
    systemd-cryptsetup@luks_backup.service loaded active exited Cryptography Setup for luks_backup
    systemd-cryptsetup@luks_data.service loaded active exited Cryptography Setup for luks_data
    systemd-cryptsetup@luks_swap.service loaded active exited Cryptography Setup for luks_swap
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-modules-load.service loaded active exited Load Kernel Modules
    systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-tmpfiles-setup.service loaded active exited Recreate Volatile Files and Directories
    systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
    systemd-udevd.service loaded active running udev Kernel Device Manager
    systemd-user-sessions.service loaded active exited Permit User Sessions
    systemd-vconsole-setup.service loaded active exited Setup Virtual Console
    dbus.socket loaded active running D-Bus System Message Bus Socket
    dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
    lvmetad.socket loaded active listening LVM2 metadata daemon socket
    systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
    systemd-journald.socket loaded active running Journal Socket
    Last edited by rwd (2013-03-10 08:32:59)

    WonderWoofy wrote:Does enabling the socket work? Sshd with systemd has socket activation, which is awesome.
    Nice, this solves it indeed. thanks!
    For anyone with the same problem it was just a matter of:
    # systemctl disable sshd.service
    # systemctl enable sshd.socket
    see https://wiki.archlinux.org/index.php/Se … shd_daemon
    Last edited by rwd (2013-03-10 09:08:43)

  • [SOLVED]intel_backlight service does not set backlight at boot

    Hi everyone,
    I have a Dell inspiron 3542 laptop.The problem is that even though the backlight.service saves and loads the backlight value it does not set it.For example:
    xbacklight -get
    outputs the saved backlight value but on screen it appears around 1-5% and only when i change it,it goes back to normal.According to [email protected] manpage"if udev property ID_BACKLIGHT_CLAMP is not set to false value, the brightness is clamped to a value of at least 1 or 5% of maximum brightness, whichever is greater. This restriction will be removed when the kernel allows user space to reliably set  a brightness value which does not turn off the display."
    My Question is how can i set the udev property
    Thank you for any suggestions
    Last edited by Liberis (2015-05-11 00:49:08)

    I have to admit that the problem and the question was not well stated.I wanted to override backlight clamping because i thought that was the problem.
    Ill try to post the solution as clear as i can (my english knowledge is not the best) .
    The laptop im using has hybrid graphics(nvidia and intel) im using the open source drivers with i915 and nouveau modules and im using lvm2 dm-crypt setup
    I tried the following
    Recompiling systemd trying to revert this patch :https://github.com/systemd/systemd/comm … ca6c595c76
    Setting -no-clamp option (could not make it right i think) in [email protected] with(could not make it work i think i did not do it correct)
    as stated at http://lists.freedesktop.org/archives/s … 27138.html
    systemctl edit [email protected]
    [Service]
    ExecStart=
    ExecStop=
    ExecStart=/usr/lib/systemd/systemd-backlight -no-clamp load %i
    ExecStop=/usr/lib/systemd/systemd-backlight -no-clamp save %i
    I could not find a way to set ID_BACKLIGHT_CLAMP in udev properties i did not quite understand what it was asking to be honest.
    Solution
    EDIT:1 Adding ENV{ID_BACKLIGHT_CLAMP}="0" in backlight section in /usr/lib/udev/rules.d/99-systemd.rules also solves the issue as the man page says.
    Do not judge these might were completely wrong moves but with little to no knowledge only trial and error could help
    I  could also set the saved backlight at boot by blacklisting the i915 module and leaving nouveau.
    The strange thing is that i915 is still being  loaded while using PRIME
    glxinfo | grep "OpenGL renderer"
    OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile
    and the lsmod output
    lsmod | grep i915
    i915 1024000 4
    intel_gtt 20480 1 i915
    drm_kms_helper 102400 2 i915,nouveau
    drm 282624 8 ttm,i915,drm_kms_helper,nouveau
    i2c_algo_bit 16384 2 i915,nouveau
    video 24576 2 i915,nouveau
    button 16384 2 i915,nouveau
    i2c_core 53248 10 drm,i915,i2c_i801,i2c_hid,i2c_designware_platform,drm_kms_helper,i2c_algo_bit,v4l2_common,nouveau,videodev
    also journalctl -xe output
    -- Unit systemd-backlight@backlight:intel_backlight.service has begun starting up.
    May 11 02:43:20 archlinux kernel: ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
    May 11 02:43:20 archlinux kernel: input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input11
    May 11 02:43:20 archlinux kernel: snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
    May 11 02:43:20 archlinux kernel: [drm] Initialized i915 1.6.0 20150130 for 0000:00:02.0 on minor 1
    May 11 02:43:20 archlinux kernel: [drm:hsw_unclaimed_reg_detect.isra.10 [i915]] *ERROR* Unclaimed register detected. Please use the i915.mmio_debug=1 to debug this proble
    May 11 02:43:20 archlinux kernel: input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card1/hdaudioC1D0/input9
    May 11 02:43:20 archlinux kernel: input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input12
    May 11 02:43:20 archlinux kernel: Console: switching to colour frame buffer device 170x48
    May 11 02:43:20 archlinux kernel: i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
    May 11 02:43:20 archlinux kernel: i915 0000:00:02.0: registered panic notifier
    May 11 02:43:20 archlinux systemd[1]: Found device ST1000LM024_HN-M101MBB sda1.
    -- Subject: Unit dev-disk-by\x2duuid-7D28\x2d5BEB.device has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- The start-up result is done.
    May 11 02:43:20 archlinux systemd[1]: Started Load/Save Screen Backlight Brightness of backlight:intel_backlight.
    -- Subject: Unit systemd-backlight@backlight:intel_backlight.service has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit systemd-backlight@backlight:intel_backlight.service has finished starting up.
    EDIT:2 Avoided the blacklisting by setting nouveau early KMS to boot earlier at mkinitcpio.conf and the result is the same
    I think nouveau has to be loaded before i915 otherwise intel_backlight service is not working even though
    systemctl status systemd-backlight@intel_backlight.service
    shows no errors
    I have to say that i have not quite understood why this is working like this but i would love if anyone can explain it.
    i can provide more info if needed
    Last edited by Liberis (2015-05-12 00:51:38)

  • [solved] problem with making dwm for configuration

    hello everyone,
    i installed and made the dwm following the instructions of this site
    https://wiki.archlinux.org/index.php/dw … mmended.29 which seemed to work fine. now i was configuring my config.h in my ~/dwm folder, which leads to the followng error:
    makepkg -efi
    ==> Making package: dwm 6.0-2 (Tue Sep 30 10:26:22 CEST 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing src/ tree
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:288:0:
    config.h:35:2: warning: missing braces around initializer [-Wmissing-braces]
    1;
    ^
    config.h:35:2: warning: (near initialization for 'layouts[3]') [-Wmissing-braces]
    config.h:35:2: warning: initialization makes pointer from integer without a cast
    config.h:35:2: warning: (near initialization for 'layouts[3].symbol')
    config.h:35:3: error: expected '}' before ';' token
    1;
    ^
    dwm.c: In function 'keypress':
    dwm.c:1087:2: warning: 'XKeycodeToKeysym' is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
    keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
    ^
    Makefile:18: recipe for target 'dwm.o' failed
    make: *** [dwm.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    here is my config.h
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
    static const char normbordercolor[] = "#444444";
    static const char normbgcolor[] = "#222222";
    static const char normfgcolor[] = "#bbbbbb";
    static const char selbordercolor[] = "#005577";
    static const char selbgcolor[] = "#005577";
    static const char selfgcolor[] = "#eeeeee";
    static const unsigned int borderpx = 1; /* border pixel of windows */
    static const unsigned int snap = 32; /* snap pixel */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 8, False, -1 },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const int nmaster = 1; /* number of clients in master area */
    static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    1;
    /* key definitions */
    #define MODKEY Mod1Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "lxterminal", NULL };
    static const char *browsercmd[] = { "dwb", NULL };
    static const char *surfcmd[] = { "surf", NULL };
    static const char *mailcmd[] = { "thunderbird", NULL };
    /*static const char *browsercmd[] = { "dwb", NULL };
    static const char *browsercmd[] = { "dwb", NULL };
    static const char *browsercmd[] = { "dwb", NULL };*/
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_w, spawn, {.v = browsercmd } },
    { MODKEY, XK_s, spawn, {.v = surfcmd} },
    { MODKEY, XK_m, spawn, {.v = mailcmd} },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_i, incnmaster, {.i = +1 } },
    { MODKEY, XK_d, incnmaster, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_z, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    i dont understand the error, but as i tried the same with the default config.h, its not due to my changes. i dont get the error when using
    makepkg -i
    but my changes weren't taken (obviously). for some reason, i cant overwrite the default package!?
    greets lizzy
    Last edited by caravanlizzy (2014-09-30 14:47:16)

    The warning messages are as clear as it gets:
    config.h:35:2: warning: missing braces around initializer [-Wmissing-braces]
    1;
    ^
    'config.h' is the filename, '35:2' is the position - 35th line, 2nd column. You even get the line in question printed out: '1;' with and "arrow" pointing to it from below - '^'.

Maybe you are looking for