[Solved] "slim: failed to execute login command" after awesomewm updat

Hi,
i updated some weeks ago via pacman -Syu, where also awesome wm was updated from 3.4.* to 3.5.* so I updated my rc.lua as it is told on their wiki, but i cant login with my rc.lua anymore i got the failed to execute login command error from slime. If i use the shipped efault rc.lua it works fine, can someone help me to figure out whats wrong with my rc.lua?
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
local menubar = require("menubar")
local vicious = require("vicious")
function fullscreens(c)
awful.client.floating.toggle(c)
if awful.client.floating.get(c) then
local clientX = screen[1].workarea.x
local clientY = screen[1].workarea.y
local clientWidth = 0
-- look at http://www.rpm.org/api/4.4.2.2/llimits_8h-source.html
local clientHeight = 2147483640
for s = 1, screen.count() do
clientHeight = math.min(clientHeight, screen[s].workarea.height)
clientWidth = clientWidth + screen[s].workarea.width
end
local t = c:geometry({x = clientX, y = clientY, width = clientWidth, height = clientHeight})
else
--apply the rules to this client so he can return to the right tag if there is a rule for that.
awful.rules.apply(c)
end
-- focus our client
client.focus = c
end
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!",
text = awesome.startup_errors })
end
-- Handle runtime errors after startup
do
local in_error = false
awesome.connect_signal("debug::error", function (err)
-- Make sure we don't go into an endless error loop
if in_error then return end
in_error = true
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, an error happened!",
text = err })
in_error = false
end)
end
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
-- beautiful.init("/home/kili/Repositories/awesome-themes/arch/theme.lua")
beautiful.init("/usr/share/awesome/themes/default/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "urxvt"
editor = os.getenv("EDITOR") or "nano"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
awful.layout.suit.floating,
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
awful.layout.suit.spiral,
awful.layout.suit.spiral.dwindle,
awful.layout.suit.max,
awful.layout.suit.max.fullscreen,
awful.layout.suit.magnifier
-- {{{ Tags
-- Define a tag table which hold all screen tags.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = awful.tag({ 1, 2, 3, 4, 5}, s, layouts[1])
end
-- {{{ Menu
-- Create a laucher widget and a main menu
myawesomemenu = {
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
{ "quit", awesome.quit }
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "open terminal", terminal }
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu })
-- {{{ Wibox
-- Create a textclock widget
batwidget = wibox.widget.textbox()
vicious.register(batwidget, vicious.widgets.bat,
function(widget,args)
local formatstring = " Bat: "..args[1]..args[2] .."%".. " "..args[3] .. " "
if args[2] <= 25 and args[1] == "-" then
return "<span color=\"red\">".. formatstring .. "</span>"
end
return formatstring
end, 60, "BAT0")
netwidgetETH = wibox.widget.textbox()
netwidgetWIFI = wibox.widget.textbox()
vicious.register(netwidgetETH, vicious.widgets.net, ' eth0:<span color="#CC9393">${eth0 down_kb}</span> <span color="#7F9F7F">${eth0 up_kb}</span>', 3)
vicious.register(netwidgetWIFI, vicious.widgets.net,' wlan0:<span color="#CC9393">${wlan0 down_kb}</span> <span color="#7F9F7F">${wlan0 up_kb}</span>', 3)
menubar.utils.terminal = terminal
mytextclock = awful.widget.textclock()--{ align = "right" })
-- Create a systray
mysystray = wibox.widget.systray()
-- Create a wibox for each screen and add it
mywibox = {}
mypromptbox = {}
mylayoutbox = {}
mytaglist = {}
mytaglist.buttons = awful.util.table.join(
awful.button({ }, 1, awful.tag.viewonly),
awful.button({ modkey }, 1, awful.client.movetotag),
awful.button({ }, 3, awful.tag.viewtoggle),
awful.button({ modkey }, 3, awful.client.toggletag),
awful.button({ }, 4, function(t) awful.tag.viewnext(aweful.tag.getscreen(t)) end),
awful.button({ }, 5, function(t) awful.tag.viewprev(aweful.tag.getscreen(t)) end)
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
awful.button({ }, 1, function (c)
if c == client.focus then
c.minimized = true
else
c.minimized = false
if not c:isvisible() then
awful.tag.viewonly(c:tags()[1])
end
-- This will also un-minimize
-- the client, if needed
client.focus = c
c:raise()
end
end),
awful.button({ }, 3, function ()
if instance then
instance:hide()
instance = nil
else
instance = awful.menu.clients({ width=250 })
end
end),
awful.button({ }, 4, function ()
awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
end),
awful.button({ }, 5, function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end))
for s = 1, screen.count() do
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt()--{ layout = awful.widget.layout.horizontal.leftright })
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
mylayoutbox[s] = awful.widget.layoutbox(s)
mylayoutbox[s]:buttons(awful.util.table.join(
awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
-- Create a taglist widget
mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons)
-- Create a tasklist widget
mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)
-- Create the wibox
mywibox[s] = awful.wibox({ position = "top", screen = s })
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(mylauncher)
left_layout:add(mytaglist[s])
left_layout:add(mypromptbox[s])
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
if s == 1 then right_layout:add(wibox.widget.systray()) end
right_layout:add(netwidgetWIFI)
right_layout:add(netwidgetETH)
right_layout:add(batwidget)
right_layout:add(mytextclock)
right_layout:add(mylayoutbox[s])
-- Now bring it all together (with the tasklist in the middle)
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_middle(mytasklist[s])
layout:set_right(right_layout)
mywibox[s]:set_widget(layout)
-- Add widgets to the wibox - order matters
--mywibox[s].widgets = {
-- mylauncher,
-- mytaglist[s],
-- mypromptbox[s],
--layout = awful.widget.layout.horizontal.leftright
-- mylayoutbox[s],
-- mytextclock,
-- batwidget,
-- netwidgetETH,
-- netwidgetWIFI,
-- s == 1 and mysystray or nil,
-- mytasklist[s],
-- layout = awful.widget.layout.horizontal.rightleft
end
-- {{{ Mouse bindings
root.buttons(awful.util.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
-- {{{ Key bindings
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
awful.key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "w", function () mymainmenu:show() end),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end),
-- Standard program
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
awful.key({ modkey, "Control" }, "n", awful.client.restore),
-- Prompt
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
awful.key({ modkey }, "x",
function ()
awful.prompt.run({ prompt = "Run Lua code: " },
mypromptbox[mouse.screen].widget,
awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval")
end),
-- Multimedia
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer -q sset Master 2dB-") end),
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer -q sset Master 2dB+") end),
awful.key({ }, "XF86AudioNext",function () awful.util.spawn( "mocp -f" ) end),
awful.key({ }, "XF86AudioPrev",function () awful.util.spawn( "mocp -r" ) end),
awful.key({ }, "XF86AudioPlay",function () awful.util.spawn( "mocp -G" ) end),
awful.key({ }, "Print", function () awful.util.spawn("ksnapshot") end),
awful.key({ }, "", function () awful.util.spawn("slimlock") end)
clientkeys = awful.util.table.join(
awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
-- awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
awful.key({ modkey, }, "n",
function (c)
-- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus.
c.minimized = true
end),
awful.key({ modkey, }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c.maximized_vertical = not c.maximized_vertical
end),
awful.key({ modkey, "Shift" }, "f", fullscreens)
-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber))
end
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, keynumber do
globalkeys = awful.util.table.join(globalkeys,
awful.key({ modkey }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end),
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewtoggle(tags[screen][i])
end
end),
awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i])
end
end),
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end
end))
end
clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize))
-- Set keys
root.keys(globalkeys)
-- Set Firefox to always map on tags number 2 of screen 1.
-- { rule = { class = "Firefox" },
-- properties = { tag = tags[1][2] } },
-- {{{ Rules
if screen.count() > 1 then
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
-- border_color = beautiful.border_normal,
focus = true,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
{ rule = { class = "Xdialog" },
properties = { floating = true } },
{ rule = { class = "Firefox" },
properties = { tag = tags[1][1] } },
{ rule = { name = "Thunderbird" },
properties = { tag = tags[1][2] } },
{ rule = { instance = "plugin-container" },
properties = { floating = true } },
{ rule = { class = "Luakit" },
properties = { floating = true } }
else
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
-- border_color = beautiful.border_normal,
focus = true,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
{ rule = { class = "Firefox" },
properties = { tag = tags[1][2] } },
{ rule = { name = "Thunderbird" },
properties = { tag = tags[1][3] } },
{ rule = { instance = "plugin-container" },
properties = { floating = true, fullscreen = true } },
{ rule = { class = "Dolphin" },
properties = { floating = false, fullscreen = false, tag = tags[1][4] } },
{ rule = { class = "Luakit" },
properties = { floating = true } },
{ rule = { class = "Pidgin" },
properties = { tag = tags[1][5] } }
end
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.connect_signal("manage", function (c, startup)
-- Add a titlebar
-- awful.titlebar.add(c, { modkey = modkey })
-- Enable sloppy focus
c:connect_signal("mouse::enter", function(c)
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
and awful.client.focus.filter(c) then
client.focus = c
end
end)
if not startup then
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c)
-- Put windows in a smart way, only if they does not set an initial position.
if not c.size_hints.user_position and not c.size_hints.program_position then
awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end
end
local titlebars_enabled = false
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(awful.titlebar.widget.iconwidget(c))
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
right_layout:add(awful.titlebar.widget.floatingbutton(c))
right_layout:add(awful.titlebar.widget.maximizedbutton(c))
right_layout:add(awful.titlebar.widget.stickybutton(c))
right_layout:add(awful.titlebar.widget.ontopbutton(c))
right_layout:add(awful.titlebar.widget.closebutton(c))
-- The title goes in the middle
local title = awful.titlebar.widget.titlewidget(c)
title:buttons(awful.util.table.join(
awful.button({ }, 1, function()
client.focus = c
c:raise()
awful.mouse.client.move(c)
end),
awful.button({ }, 3, function()
client.focus = c
c:raise()
awful.mouse.client.resize(c)
end)
-- Now bring it all together
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_right(right_layout)
layout:set_middle(title)
awful.titlebar(c):set_widget(layout)
end
end)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
Here is also my slime config and my initrc
ls -lisa .xinitrc
3276814 4 -rwxr-xr-x ...
#!/bin/sh
xrdb -merge ~/.Xresources
wicd-client --tray &
exec awesome #>> ~/.cache/awesome/stdout 2>> ~/.cache/awesome/stderr
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/bash -login ~/.xinitrc %session
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
# sessionstart_cmd some command
# sessionstop_cmd some command
# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon yes
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions awesome,xfce4,icewm-session,wmaker,blackbox
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user kili
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
focus_password yes
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login no
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme archlinux-simplyblack
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.log
Thanks in advance!
Edit:
Besides a lot of other errors the problem was the systray. It was created 2 times, now login works again. I figured that out via enabling logging for awesome in the xinitrc again.
Last edited by stubb (2013-01-08 23:20:05)

Hi,
I have the same kind of issue after updated slim from v1.3.4-4 to v1.3.5-1.
see my topic  here :
https://bbs.archlinux.org/viewtopic.php?id=156792
Last edited by cedricl (2013-01-24 17:16:42)

Similar Messages

  • I can not login Flickrs, after I update IOS 8.0.2 ?

    I can not login Flickrs, after I update iOS 8.0.2 ?

    I tried hard reset by press both power and home button.
    I can not hear music played through the speaker. Just music only.
    The speaker workes well with imcomming call or out going call by turn on loud speaker.
    Linh.

  • Z77A-G43 login loop after Live update BIOS to V25.1

    Hi,
    Z77A-G43 windows login loop after Live update BIOS to V25.1
    I'm able to see the BIOS menu. But when i continue to login to windows, it loops.
    i would like to know on how to proceed on this. I tried safemode and i was able to login.
    I cannot find the clear cmos jumper on this board.
    Appreciate your response on this one. Thanks!
    edit: I just tried removing the board battery. But still encountering the same issue.
    -Paul

    There is no such BIOS version for this board.
    The last BIOS is v2.11  see here http://www.msi.com/product/mb/Z77A-G43.html#/?div=BIOS
    As for the CMOS jumper. This must be the most stupid saving that MSI has ever done. They leave out the jumper, obviously in an effort to save costs. 
    Check your manual to find the location of the clear CMOS pins. Then you need to short these with a jumper from somewhere else  or use a metal object to connect the pins.

  • How can I execute a command after kernel-upgrade/mkinitcpio

    Because of the archlinux specific kernelnaming-policy there's a problem when using grub2. The created menu looks nasty because grub-mkconfig can't find the proper kernel-version. (Bugreport: https://bugs.archlinux.org/task/25453)
    Even if this is fixed we need to recreate the grubconfig always when a new kernel-version is installed.
    What I want now is executing grub-mkconfig after each kernel-installation/mkinitcpio, without repackaging the kernel. Is such a hook possible?
    Last edited by fsckd (2012-02-21 17:36:20)

    Rorschach wrote:
    Because of the archlinux specific kernelnaming-policy there's a problem when using grub2. The created menu looks nasty because grub-mkconfig can't find the proper kernel-version. (Bugreport: https://bugs.archlinux.org/task/25453)
    Even if this is fixed we need to recreate the grubconfig always when a new kernel-version is installed.
    What I want now is executing grub-mkconfig after each kernel-installation/mkinitcpio, without repackaging the kernel. Is such a hook possible?
    This is not necessary unless Versioned Kernel Installs are supported by pacman. I have added a new patch to https://www.dropbox.com/sh/jth3mchm3hob … src.tar.gz that solves the issue. No need for pacman or mkinitcpio hooks (for now).

  • Execute a command after 3 seconds...

    hey guys... there´s a way on AS to execute a command like.... menu2items.selectedIndex = 2; after some seconds?
    cya....

    Example code:
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    // create a timer that executes after 3 seconds, only once
    public var timer:Timer = new Timer( 3*1000, 1 );
    public function init():void
         // add event listeners
         timer.addEventListener( TimerEvent.TIMER, handleTimerEvent );
         // start the timer
         timer.start();
    public function handleTimerEvent( event:TimerEvent ):void
         menu2items.selectedIndex = 2;
    Let me know if that helps...
    Ben Edwards

  • [SOLVED] zsh: Failed to execute operation: No such file or directory

    I recently ordered a chromebook (acer c720) and have successfully replaced ChromeOS with Arch Linux. Things were going great the past 2 days but all of a sudden whenever I try to use tab completion on zsh (does not happen in bash or any other shell I've tested) I receive the message:
    Failed to execute operation: No such file or directory
    My .zprofile is:
    emulate sh -c 'source /etc/profile'
    #[[ -f ~/.zshrc ]] && . ~/.zshrc
    if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
    startx
    fi
    My .zshenv is:
    export PATH=/home/zach/.bin:$PATH
    export EDITOR=nano
    export BROWSER=firefox
    [[ $(tty) = /dev/tty1 ]] && xrdb merge /home/zach/.config/xresources
    My .zshrc is:
    #source ~/.zshenv
    # Lines configured by zsh-newuser-install
    HISTFILE=~/.histfile
    HISTSIZE=100000
    SAVEHIST=100000
    HISTCONTROL=ignoredups
    setopt appendhistory autocd extendedglob nomatch
    bindkey -e
    # End of lines configured by zsh-newuser-install
    # The following lines were added by compinstall
    zstyle :compinstall filename '/home/zach/.zshrc'
    autoload -Uz compinit
    compinit
    # End of lines added by compinstall
    PS1=$'\e[1;36m%~\e[0m >>\e[1;36m>\e[0m%] '
    #Begin Aliases
    alias edit='$EDITOR'
    alias sedit='sudo $EDITOR'
    alias pacman='sudo pacman'
    # Listing
    alias ls='ls --color=auto --group-directories-first'
    alias lsl='ls --color=auto --group-directories-first -l'
    alias lsa='ls --color=auto --group-directories-first -al'
    alias lsp='ls --color=auto --group-directories-first -alp'
    # Moving/Copying
    alias cp='cp -r'
    alias rm='rm -r'
    alias ...='cd ../..'
    alias ....='cd ../../..'
    alias bd='cd -'
    alias mkdir='mkdir -p'
    # System
    alias systemctl='sudo systemctl'
    alias journalctl='sudo journalctl'
    alias cronedit='EDITOR=nano crontab -e'
    alias reload-daemons='sudo systemctl daemon-reload'
    alias enable='sudo systemctl enable'
    alias disable='sudo systemctl disable'
    alias start='sudo systemctl start'
    alias stop='sudo systemctl stop'
    Is there something I'm missing or not considering? The tab completion still works, it just displays that message every time inline and it's really annoying. Also I searched google, the wiki, and the forums for any information regarding this and either my search-fu isn't strong enough or it's not showing up elsewhere.
    Last edited by revoltorb (2014-09-13 14:05:44)

    Rename the "enable" and "disable" aliases. They are zsh hash table operators.

  • IPad fails to connect to WiFi after OTA update to iOS 6

    After the OTA update to iOS 6 my new iPad fails to connect to my WiFi network at home. My LANCOM router reports the following issue:
    Index: 62294
    Zeit: 19.09.2012 21:08:28
    Interface: WLAN-1
    Ereignis: Rejected Association from WLAN station xx:xx:xx:xx:xx:xx []: ()
    Adresse: xxxxxxxxxxxx
    Grund: Cannot support all requested capabilities in Capability Information field
    It has worked flawlessly in the past with iOS 5 on my new iPad and iPhone 4. At the moment I hestitate to update my iPhone too.
    Anyone with the same issue or an idea how to fix it?
    Thanks in advance, greetings from Stuttgart (Germany),
    Jens

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Import failed with canon 6d footage after latest update

    After I updated to Final Cut X 10.0.8, I've been getting "Import Failed" messages during the import process when taking in footage from my Canon 6D
    The import process also seems to be going very slow (slower than usual)
    I've tried duplicating the SD card locally on the hard drive and re-importing, but have gotten the same results.
    If I click OK on the error dialogue box, the import will continue. but another box will pop up every 5 to 10 minutes or so
    Any ideas?

    Hey Russ, it actually works fine for me too the few times I've used it but I point it out as a common denominator with people who have trouble importing that way. Separating the .mov files into their own folder eliminates the camera and card reader, both much slower than just transfering files from a connected drive. But I'm doing newspaper video with Canon DSLRs - including 5D3 video, similar to 6D - almost daily where speed is of the essence and this is by far the most foolproof method I've come across.

  • HT6207 Fails to establish VPN connection after Security Update 2014-002

    I have successfully used a VPN service with Mac OS 10.7, 10,8 and 10.9. After an update with Security Update 2014-002 connection requests are directy rejected by the MacOS. When looking into the VPN-log, the same set of 4 messages is logged after each attempt:
    publish_entry  SCDSet() failed: Success!
    publish_entry SCDSet() failed: Success!
    Fatal signal 13
    can't talk to PPPController : Broken pipe
    Is there a known remedy?
    /andersbl

    The VPN connection to this specific servcie provider has worked for me with previous MacOS and with 10.9. It now fails and the only change to my Macs are that I loaded the Security Update 2014-002 in the of April. I checked by adding the exactly same VPN connection definition to a 10.6 Mac and connected from the same LAN. This succeeded. Thus I suspect the Security Update, or that there is some paramater that now needs to be defined/changed.

  • [SOLVED] UEFI-System doesn't start anymore after rEFInd update

    Hi there,
    got some problem with my UEFI system after todays update of refind-efi: Arch doesn't boot anymore
    What have I done:
    At first I did a
    $ sudo pacman -Syu
    During the update I was presented with the usual information concerning copying some files from /usr/lib/refind/*. So I did this:
    $ sudo cp /usr/lib/refind/refind_x64.efi /boot/efi/EFI/refind/refind_x64.efi
    Than I did:
    $ sudo cp /usr/lib/refind/config/refind.conf /boot/efi/EFI/refind/refind.conf
    $ sudo cp -r /usr/share/refind/icons /boot/efi/EFI/refind/icons
    After that I rebooted my computer and was presented with an "Asrock" writing that doesn't change to the rEFInd-screen as it should.
    Question: What can I do now? (And what did I wrong?)
    Last edited by swordfish (2013-01-11 17:01:54)

    Hi Rod,
    thanks for your quick answer !
    Ok, you write:
    srs5694 wrote:
    The 0.6.3 package changes the name of the rEFInd binary from refindx64.efi to refind_x64.efi. This is done because the official rEFInd release uses the latter name, and it includes support scripts that work correctly only if that name is used. Thus, if you deleted your old binary and copied the new one in place without renaming it to the old name, it would stop working, since the NVRAM entry would still point to the old name. There are two solutions:
    Rename the new binary to the old name (refindx64.efi). If you do this, you'll need to keep doing it in the future or eventually do the next thing. Also, this might not work if your firmware has "helpfully" removed the existing entry. Thus, the next option is probably better...
    Use efibootmgr to add a new entry for the new name. The Arch wiki has details on this here and probably elsewhere, too.
    Jepp, I've seen the new name "refind_x64.efi". During my attempt to perform a proper install I did what you assume in your first solution - renaming the new binary to the old name (refindx64.efi).
    After that my system didn't reboot ...
    After that I booted from my USB stick with which I've installed my Arch system. I mounted my system partitions to /mnt, loaded the efivars module and arch-chrooted into the system. From there I copied the new binary from /usr/lib/refind/refind_x64.efi to /boot/efi/EFI/refind/refind_x64.efi and did this:
    # efibootmgr -c -g -d /dev/sda -p 1 -w -L "rEFInd" -l '\EFI\refind\refind_x64.efi'
    /boot/efi is mounted to /dev/sda1
    But even after I did this a reboot only led to the well known green "Asrock" writing - no rEFInd appeared
    Using the efi shell I can see that the boot entries seem to be okay.
    srs5694 wrote:rEFInd 0.6.3 has a known bug that causes it to crash on some systems. Upgrading to 0.6.4 may be necessary if you're affected by this bug. The usual symptom is a system hang, though, not a return to the firmware menu, so I suspect this isn't the problem. If it is, you can grab the official non-Arch rEFInd package and copy the refind_x64.efi file from it over the one on your ESP.
    Hm, seems as if I have to try this ...

  • Website login fails on iPad 2 Safari after iOS6 Update

    Upgraded to iOS6 9/19/2012.
    I just spent half an hour troubleshooting why a site I developed for a client fails its login. Passwords are salted and hashed in Javascript, POSTed to an AJAX PHP page to compare password against stored salted password in database, then user is redirected to where they need to go. This site has always worked on the iPad, which is one of the site's most favored features.
    Logging into the site no longer works. I've tested this issue on my PC with no problem using Firefox, Chrome, Safari, Opera. I've also tested on my iPad 2 using its Chrome and Mercury browsers with no problem.
    The problem only occurs on iPad's Safari browser, and just started happening today. The only difference between today and yesterday is the iOS6 upgrade. Therefore, it stands to reason that iOS6 Safari is the problem.
    The PHP running in the background that actually compares the user input to the DB credentials no longer matches the hash of the salt/password hash with the nonce. This command in iOS6 Safari gives completely different results than any other browser:
    $rehash = hash("sha512", hash("sha512", $salt . $password) . $nonce);
    I have absolutely NO idea why or how this command is affected by a browser. I'm telling you, this only not works on the iPad 2 iOS6 running Safari. I've tried clearing History, cookies and the like, and I get the same thing every time.
    I'd like to downgrade back to a previous version of iOS6. It's fine to have my iPhone in iOS6, but I use my iPad for development, and I need to revert back.
    Ideas? Thoughts?

    You may want to check this out.  We were seeing login issues prior to finding this.
    http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-resu lts

  • [SOLVED] Pacman failed retrieving file 'core.db' after removing KDE

    Hey, I had to remove KDE and foolishly used the -Rsc flag. Now, trying to update yields:
    [root@Gal-PC2 gal]# pacman -Sy
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db' from mirror.isoc.org.il : Resolving timed out after 10524 milliseconds
    error: failed retrieving file 'core.db' from mirror.us.leaseweb.net : Resolving timed out after 10523 milliseconds
    I tryed using the -Sy and -Syy flags to update the database, and made sure I am not using ipv6. I think the -Rsc flag might deleted an importent package. I can connect to the net, and I can acess mirrors using http and I can ping the mirrors. The error persists on a large number of mirrors. Any help will be appriciated.
    Last edited by Greenstuff (2015-02-08 20:49:24)

    Sorry, will do!
    The debug printed a lot of the first errors, so I cut them. This is what pacman --Syu --debug show:
    debug: adding new server URL to database 'multilib': [url]http://ftp.nluug.nl/pub/os/Linux/distr/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.ds.hj.se/pub/os/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.uni-kl.de/pub/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.tu-chemnitz.de/pub/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://mirror.lnx.sk/pub/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://mirrors.st.uz/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://mirrors.mithril.org.ua/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.uni-bayreuth.de/linux/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://artfiles.org/archlinux.org/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://repo.ukdw.ac.id/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://linux.cs.nctu.edu.tw/archlinux/multilib/os/x86_64[/url]
    debug: adding new server URL to database 'multilib': [url]http://ftp.kaist.ac.kr/ArchLinux/multilib/os/x86_64[/url]
    debug: config: new section '(null)'
    debug: config: finished parsing /etc/pacman.conf
    :: Synchronizing package databases...
    debug: url: [url]http://mirror.isoc.org.il/pub/archlinux/core/os/x86_64/core.db[/url]
    debug: maxsize: 26214400
    debug: using time condition: 1422991262
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    debug: curl returned error 28 from transfer
    error: failed retrieving file 'core.db' from mirror.isoc.org.il : Resolving timed out after 10523 milliseconds
    debug: url: [url]http://mirror.us.leaseweb.net/archlinux/core/os/x86_64/core.db[/url]
    debug: maxsize: 26214400
    debug: using time condition: 1422991262
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    EDIT: SOLVED!
    Ok, so I did indeed disable ipv6 as I promised, but turns out I put in the GRUB kernel line "ipv6.disable_ipv6=1". Upon re-reading the wiki, turns out this means ipv6 is disabled but tunnels with ipv6 may be opened by programs. I changed to "ipv6.disable=1" and pacman updates away! I hope others will find this usefull. Be careful!
    Last edited by Greenstuff (2015-02-08 20:52:45)

  • [SOLVED] slim fails to load on boot

    Hi,
      On boot the system will attempt to load slim, but fails, with no onscreen reason as to why.  If I attempt to launch slim from the console, the same thing happens.  Here's what systemctl thinks:-
    $ systemctl status slim
    slim.service - SLiM Simple Login Manager
    Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
    Active: failed (Result: exit-code) since Fri 2014-01-31 20:24:01 GMT; 2h 15min ago
    Process: 325 ExecStart=/usr/bin/slim -nodaemon (code=exited, status=1/FAILURE)
    Main PID: 325 (code=exited, status=1/FAILURE)
    CGroup: /system.slice/slim.service
    Jan 31 20:23:58 laptop slim[325]: Initializing built-in extension XVideo
    Jan 31 20:23:58 laptop slim[325]: Initializing built-in extension XVideo-MotionCompensation
    Jan 31 20:23:58 laptop slim[325]: Initializing built-in extension XFree86-VidModeExtension
    Jan 31 20:23:58 laptop slim[325]: Initializing built-in extension XFree86-DGA
    Jan 31 20:23:58 laptop slim[325]: Initializing built-in extension XFree86-DRI
    Jan 31 20:23:58 laptop slim[325]: Initializing built-in extension DRI2
    Jan 31 20:23:58 laptop slim[325]: Loading extension GLX
    Jan 31 20:23:58 laptop slim[325]: (II) [KMS] Kernel modesetting enabled.
    Jan 31 20:24:01 laptop systemd[1]: slim.service: main process exited, code=exited, status=1/FAILURE
    Jan 31 20:24:01 laptop systemd[1]: Unit slim.service entered failed state.
    There's this from journalctl too:-
    Jan 31 20:24:01 laptop systemd[1]: slim.service: main process exited, code=exited, status=1/FAILURE
    Jan 31 20:24:01 laptop slim[325]: (EE) Server terminated successfully (0). Closing log file.
    Jan 31 20:24:01 laptop systemd[1]: Unit slim.service entered failed state.
    I should add.  If I login to a bash prompt, and launch X with startx, it boots to the desktop.
    Last edited by n1md4 (2014-01-31 23:25:39)

    pacman -R slim
    pacman -S slim

  • [SOLVED]Crontab fails to execute script

    Good morning.
    I have tried to setup crontab to give my ati card a different clockspeed depending on the time of day. I can't get it to work properly. This is what I have done.
    I have 3 scripts in my ~/bin folder for 3 different clocks. This is one example, I call this upclock.sh.
    #!/bin/bash
    export DISPLAY=:0
    /usr/bin/aticonfig --odsc 895,300
    If I execute it from the commandline, as a normal user, it works as expected and the clock is changed. This goes for all 3 scripts.
    I add these to roots crontab like this:
    15 23 * * * `DISPLAY=:0 /home/johan/bin/downclock.sh`
    0 3 * * * `DISPLAY=:0 /home/johan/bin/midclock.sh`
    0 7 * * * `DISPLAY=:0 /home/johan/bin/upclock.sh`
    But, I get the following error mail when the times specified comes:
    No protocol specified
    /bin/sh: ERROR: command not found
    Anyone got a hint on what to do to make it work? I have tried to remove the "DISPLAY=:0", with the same result.
    Last edited by kveras (2011-06-28 12:40:14)

    fukawi2 wrote:
    15 23 * * * `DISPLAY=:0 /home/johan/bin/downclock.sh`
    0 3 * * * `DISPLAY=:0 /home/johan/bin/midclock.sh`
    0 7 * * * `DISPLAY=:0 /home/johan/bin/upclock.sh`
    You don't want to use backticks around your commands. Start by removing them.
    Oh, I picked those up from a similar crontab on the gentoo forums, don't know why. I removed them and I now get another message.
    No protocol specified
    ERROR - X needs to be running to perform ATI Overdrive(TM) commands
    However, X is running, initiated by SLIM as normal user "johan".
    I tried using the user johan's crontab instead:
    15 23 * * * DISPLAY=:0 /home/johan/bin/downclock.sh
    0 3 * * * DISPLAY=:0 /home/johan/bin/midclock.sh
    0 7 * * * DISPLAY=:0 /home/johan/bin/upclock.sh
    This works just fine!
    Thank you for pointing me in the right direction.

  • BSP gen in Vivado - failing to execute Tcl commands.

    Hi All,
    Likely a noob question here. Using distro 2014.4. I am trying to run individual tcl commands as per UG1138: Generating basic software platforms, in order to generate a BSP with advance settings.
    More specifically, I refer to the Appendix C of the doc: "BSP, DTS and Application Generation in Vivado".
    Now, I figured the "Vivado%" prompt in the instructions would require opening Vivado in tcl mode, which I did in a Xilinx SDK shell (getting the same results when starting Vivado 2014.4 Tcl Shell).
    So early lines proposed in Appendix C give errors:
    Vivado% common::load_features hsi
    invalid command name "common::load_features"
    Vivado% load_features hsi
    ERROR: [Common 17-220] No such feature 'hsi'. Available features are: board ipin
    tegrator ipservices labtools simulator updatemem
    Vivado%
    I feel like I am probably missing something obvious here.
    Any help appreciated.
    --Martin

    Hi stephenm,
    in shell open from SDK "Xilinx Tools -> launch shell": C:\apps\Xilinx\SDK\2014.4\bin\hsi.BAT
    on windows cmd.exe: which: no hsi in (<whole system path>)
    Also this is working after installing 2015.5:
    Vivado 2015.5 Tcl Shell
    vivado % list_features
    board hsi ipintegrator ipservices labtools simulator
    In 2014.4, I was not seeing "hsi" listed in the features.
    So it seems like it can work as advertise by the doc.
    I think I was mislead by the doc (v2015.2) while using 2014.4.
    also maybe some bug problems were resolved since then.
    Thanks a lot for the help, it's really appreciated!
    --Martin

Maybe you are looking for

  • Finding a non-recursive algorithm

    I had a project a year ago that was supposed to teach the class recursion. Already being familiar with the Java language, the project was simple. The project was, you ahve a "cleaning robot" which cleans an entire room and then returns to the spot it

  • Apache page serving slowdown after 10.4.6 update

    Not sure which section I should have put this under so thought I'd start here. My version of apache as installed with Tiger (which I use as a production server) was working fine with both php and MySQL. After the update, my local site when accessed t

  • Can't download itunes on widows 8 pc., can't download itunes on widows 8 pc.

    I have been trying to download Itunes on my new windows 8 computer since yesterday but it does nothing. It doesn't even open a download window. It goes to the download page you press download then nothing. I have no idea what is going on. I thought i

  • I want to change my country and region via iTunes and add a visa debit card from u.s

    I've created a new apple I.D for U.S But my Wells Fargo Bank's Debit Visa is being declined, or something  doesn't match! Because I've activated the Card but when using AppStore app. it refers me to iTunes help without any specific problem, which usu

  • Share to video camera:  audio, but no video

    I'm trying to backup my iDVD movie to a videotape like I've done a number of times before. But when I try to "share" the move to the video camera, I get audio coming through but no video. The cable appears to be fine...I can see video from the camera