Hardware Profile 'Daemon'

Hai everybody. I am a laptop user and at home i have a docking station. So i switch hardware often. Ive written a lillte deamon that detect wheter i am using a dockingstation or not. Depending the configuration it copies the configuration files. When stopping the daemon (actually it isn't really a daemon....) it writes back any changes you made in de configfile you are using.
#!/bin/bash
# source application-specific settings
# general config
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Loading Hardware Profile"
if [ -r /dev/hdc ]; then
#Load Docking Configuration
cp /etc/X11/xorg.crt /etc/X11/xorg.conf
else
#Load Non-Dock Configuration
cp /etc/X11/xorg.lcd /etc/X11/xorg.conf
fi
if [ $? -gt 0 ]; then
stat_fail
else
stat_done
fi
stop)
stat_busy "Saving Hardware Profile"
if [ -r /dev/hdc ]; then
#Writing back possible changed configuration
cp /etc/X11/xorg.conf /etc/X11/xorg.crt
else
#Writing back possible changed configuration
cp /etc/X11/xorg.conf /etc/X11/xorg.lcd
fi
if [ $? -gt 0 ]; then
stat_fail
else
stat_done
fi
restart)
$0 stop
sleep 1
$0 start
echo "usage: $0 {start|stop|restart}"
esac
This code is quite simple actually it could be much more advanced but i have no expience in linux programming.
My laptop has no cd-drive, but the dockingstation has. so this line of code
if [ -r /dev/hdc ]; then
checks if there is a cd drive.

phrakture wrote:
atze wrote:thnx. Concerning the hwd -X thingy. I need some special configuration for my xorg.conf (en option for my videocard (Option "CrtOnly" "true") so hwd -X aint working. The wiki in a good idea, but i think it should be a bit more advanced. Maybe i should write something like the new network profile stuff.
Well, yeah hwd won't work for everyone, however it will work fine for some (my crt/lcd switch is pure hardware, so i need no special config to get it working) - and you can only have it run if the file doesn't exist.  It was just a random idea.
well the hwd -X thing aint a bad idea, maybe it takes to much time. Actually this script should include more like (network/usb-drivers) mount point. It would maybe be even better if it would run before the bootsequence enters an runlevel so you can configure your rc.local to your current hardware profile.

Similar Messages

  • How do I get the hardware profile on a Mac Mini

    Please excuse my ignorance, PC user but I do run Linux. I have a Mac Mini and can not relate to the way Apple does things yet. How do I get a hardware profile so I know what hides within the cute little box?

    Welcome to the Apple Discussions!
    Clicking through the "About This Mac" window opens the System Profiler application which lives in your /Applications/Utilities/ folder. You can open it directly from there instead of going through the window, if you like.
    -Doug

  • SCVMM 2012R2 edit hardware profile crashes

    Hi
    We just upgraded from SCVMM 2012sp1 to 2012R2 (running on server 2012) with a small hope of fixing this issue, but unfortunately its still the same.
    When editing a hardware profile the vmm console (running on win 8.1) crashes when clicking OK. We have tested on different machines and OS with different users. Same error..
    In the eventlog we get this:
    Application: VmmAdminUI.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.InvalidOperationException
    Stack:
       at System.Windows.Window.ShowDialog()
       at Microsoft.VirtualManager.UI.WizardFramework.WizardWindow.ShowWizard(Microsoft.VirtualManager.UI.WpfControls.DialogOwner, Microsoft.VirtualManager.UI.WizardFramework.Flow)
       at Microsoft.VirtualManager.UI.Pages.Library.LibraryActionHelper.ShowHWProfileProperties(Microsoft.SystemCenter.VirtualMachineManager.ILibraryObject, Microsoft.VirtualManager.UI.ConsoleFramework.ActionContext)
       at Microsoft.VirtualManager.UI.Pages.Library.LibraryActionHelper.ShowProperties(Microsoft.SystemCenter.VirtualMachineManager.ILibraryObject, Microsoft.VirtualManager.UI.ConsoleFramework.ActionContext)
       at Microsoft.VirtualManager.UI.Pages.Library.PropertiesActionGroup`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ShowProperties(System.__Canon, Microsoft.VirtualManager.UI.ConsoleFramework.ActionContext)
       at Microsoft.VirtualManager.UI.Pages.Library.SingleLibraryObjectActionBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnClick()
       at Microsoft.VirtualManager.UI.ConsoleFramework.ActionBase.System.Windows.Input.ICommand.Execute(System.Object)
       at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)
       at System.Windows.Controls.MenuItem.InvokeClickAfterRender(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(System.Object)
       at System.Windows.Application.RunInternal(System.Windows.Window)
       at System.Windows.Application.Run(System.Windows.Window)
       at Microsoft.VirtualManager.UI.VmmAdmin.Program.Main(System.String[])

    cacack wrote:This is biting me as well.  Appears to be a problem in ffmpeg.  Here's the bug report.
    Have you found a workaround that allows turning thumb extraction back on?

  • My SCVMM upgrade to UR6 after, I can't create VM and hardware profile.

    My SCVMM's hardware profile is missing, once I create hardware profile in  Library , system will be crash. how to fix it?

    Had a similar problem a couple of days ago.
    where able to create Hardware Profiles, but not delete them. and since the Create Virtual machine process in vmm creates and remove a Hardware Template, the creation failed.
    when it failed to delete, i got a error log located in C:\ProgramData\VMMLogs\. take a look at it.
    in my case it was a database error. 
    i ran "DBCC CHECKDB (VirtualManagerDB)" and it indicated that my indexes was corrupted. 
    I then did run "DBCC CHECKDB (VirtualManagerDB, repair_rebuild)" and it fixed the problem.
    Read the log, check the database. and if its the same problem as me. run the repair_rebuild.
    but remember to take a backup, just in case.

  • No 'built in audio' on the hardware profile page

    Mac 2.1, upgraded to 4G memory. My audio has been wonky, the internal speaker hasn't been working for weeks. Today, No audio from the auxiliary speakers, the slider in the control at page top won't move, the hardware profile shows 'no built  in audio'.

    What an incredibly difficult forum to navigate and communicate on! It took numerous tries to 'login' so that a reply option appeared. If all Mac apps worked this intuitively Microsoft would still rule the world. I'll guess it's coders have forgotten being new and don't even talk to naive users so the culture has grown more ingrown with each month?
    Resetting the SMC restored normal sound on the external speakers. No change on the dead internal speaker, making it a bit past difficult to do the NVRAM reset as there is no 'chime' signaling computer ON. After the screen grayed and died several times I released all 4 keys and it restarted normally. Seems there has to be a completed restart for the external speakers to work?
    Since the Genius Bar is only available for the ambulatory (Apple doesn't have handicapped users?? Or know what Phones are for?) I'll eventually manage a daytime visit to the distant Apple store and see if there is a simple fix for the internal speaker. NO points for the first reply by Kappy, hiding a possibly useful response in a link that isn't obviously one to new users is elitism and should get points distracted, specially as the forum seems to have lag and clicking on highlighted phrases does squat till the lag ends? Communication isn't finished when the sender is happy, it ends when the message is correctly received by the end user.

  • Laptop hardware profile management

    Hi,
    I have a laptop and I use it at three different places with different hardware
    configuration. For me the option of selecting a network profile is not enough.
    What I do, and I think it can be useful for other laptop users is the following:
    I modified /etc/rc.sysinit so that at the beginning it shows a menu for choosing a profile. Assume that a profile 'home' is chosen. Then it symlinks
    /etc/rc.conf->/etc/rc.conf.home.
    Then different hardware profiles can be used by creating a rc.conf.profile
    file for each profile.
    The problem is that I have to modify rc.sysinit each time I upgrade initscripts.
    Maybe it can be a good idea to add the support for such feature in rc.sysinit or some other place?
    Before using Arch, I used gentoo, and there was a package hprofile there that
    handled this issue. however, it was a bit awkward.

    http://bugs.archlinux.org
    I'd just like to say that this is a neat idea, but I personally don't have a use for it.  Network is all I need

  • Hardware profile says 256MB vram but I have MBP with 128MB vram

    Today I ran the Apple hardware test from the install CD's and afterwards, I checked out the hardware profile. It said I had a total of 256MB of vram. I have the 2.2ghz MBP model with only 128MB vram, so I'm not sure why it would say 256MB. Can anyone shed some light on this matter? Thanks.

    Here's the answer:
    http://docs.info.apple.com/article.html?artnum=305638
    I had that problem too. Secretly hoping that Apple had put a 256mb vram 8600GT card in by mistake haha. ;p

  • Dock/Undock Hardware Profiles Missing

    I have a user with a Thinkpad t60z that uses a docking station. There are a couple things happening..
    1. when he docks hot (with the system turned on), it doesn't recognize his network connection.
    2. The dock / undock option is missing from the start menu.
    3. The dock / undock hardware profiles are missing.
    I'm thinking the root of the problem is the hardware profiles.. but, need some guidance on how to get them back ... any suggestions would be appreciated.
    Not sure what could causing the missing dock/undock option in the Start menu.. any help with that would be appreciated.
    This is running a Windows XP SP3 OS - we just updated the BIOS to the latest version. Note: this issue was happening before the bios update...
    Thanks.
    Jill

    Photoshop does not do well with 2 GPU's, especially different makes.  And the onboard GPU is not much, why use it at all?

  • No hardware profiles, nothing in device manager

    no hardware profiles and nothing in device manager.

    Hi,
    Go into Device Manager and check your viewing options.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • W530 with USB 3.0 dock hardware profiles

    I have a thinkpad W530 running Windows 8.1 Update that is connected to a USB 3.0 Pro dock when i am at my desk.  Is there any way to get the laptop to sense the docked condition and toggle Audio/Video to the external devices and then toggle to the internal devices when undocked?  It seems hit or miss on this happening.  We use Microsoft Lync and sometimes when i boot up connected to the dock, Lync still is set to use the on laptop camera and speakers.  If i set it correctly docked, when i boot up off of the dock, Lync sometimes gets the hardware correct and sometimes doesn't.  
    I was hoping that there was either a Lenovo utility that could sense the docked vs undocked condition and toggle appropriate hardware or that i have something set wrong that someone might be able to suggest.  
    Thanks.

    Just a quick question:  the  Mini Dock  Plus USB Series 3 with USB- 170W dock (part number 433835U) IS definitely compatible with the W530?  I just finished text chatting with a rep (I know, I know) and was told "There is no compatible docking station for the W530).  Yet, I found where the W530 is listed as compatible here:  http://support.lenovo.com/en_US/detail.page?LegacyDocID=MIGR-4TPJF4
    Does anyone have any actual experience with this docking station and know for certain whether it's compatible?
    Thanks!
    --Jay 

  • Hardware profiles

    I have onboard video and a PCI express slot.
    For normal computer usage i would like to use onboard video while for gaming, my 8800GT.
    How do I go about doing this without having to disconnect the video card from the slot for normal computer usage?
    Can I select "primary Graphics adapter = onboard" in BIOS, leave my video card connected and still use onboard video in XP ?

    Quote from: Gaurav
    For normal computer usage i would like to use onboard video while for gaming, my 8800GT.
    How do I go about doing this without having to disconnect the video card from the slot for normal computer usage?
    That won't work. Nvidia as well as AMD/ATi have technologies for that but that requires the use of certain hardware combinations.
    In case of Nvidia that technology is called Hybrid Power. Hybrid Power is a Hybrid SLi mode like GeForce Boost. Unfortunately no Nvidia chipset for Intel cpus supports Hybrid Power but just GeForce Boost (performance increase by using 8500GT/8400GS in SLi mode with onboard vga). So the 730i chipset on your board is not able to do Hybrid power. 730A chipset for AMD cpus on the other hand is Hybrid Power able.
    None the less you couldn't use Hybrid Power even if you had a Hybrid Power able chipset as the decent vga has to support Hybrid Power as well. That would require a 9800GT and above while you're using an 8800GT. So your vga is also not able to support Hybrid Power.
    You can look up Hybrid Power able hardware combinations here: http://www.nvidia.com/object/hybrid_sli_desktop.html

  • Is there any software that view hardware profile

    software that show deep information of cpu and ram...... thx
    like cpu-z in pc

    Thank you steve but i want more detail than what
    normal System profile give......
    ex like cpu current bus, l1 cache , mutipler
    ,,, ram ,cas latency.....
    I don't know if it works the same on the Intel models, or has been updated for them, but I believe you used to get a lot of that info in the report after running TechTool Pro on the PowerPC models.

  • Why can't I assign hardware and guest os profiles to servers in the new SCVMM 2012 Service Templates?

    Trying to learn SCVMM 2012, but I'm confused about how Guest OS and Hardware Profiles work with the new 2012 Service Templates.
    I create a Hardware Profile and a Guest OS Profile. Then I open the Create VM Template wizard. In this wizard I can assign the Hardware and Guest OS profiles I created under the Configure Hardware and Configure Operating System steps in the wizard.
    If I open the new Service Template wizard, select a Single Tier Server (for example), open the Service Template Designer and go to the properties of the server I find under Hardware Configuration and OS Configuration I cannot assign my Hardware and Guest OS
    profiles to the server.
    Why is this? It seems like extra work to have not be able to assign these profiles to servers in a service template. Is there something fundamental I'm missing here?

    I have the same issues with the equipment I maintain. Two things are consistent that I see between this forum and my set up. I had 10.5 on all our Macs and each of them could connect with out issue to the shares on a windows xp machine. I have three Mac computers I am working with. 1. My main computer a MacBook Pro 2.4ghz core 2 duo, an Intel iMac, and an older Mac Pro G5 running OS 10.5 server.
    I have another server running kiosk or signage displays that is a windows xp machine. All of my macs could access the windows xp machine by clicking on it and authenticating to it and then the shares will show up.
    I upgraded my MacBook Pro first to 10.6 and have been unable to connect to the windows shares ever since. Keep getting Authenticatoin failure. So my work around is to transfer files to the 10.5 macs and then screen share one of them and access the windows share from them. Spoke with Apple support and they could not help and said it was a know issue but did not have a solution.
    Last week I upgraded the iMac to 10.6 and it too, now will not authenticate to the windows shares.
    Here are the strange things... I can take my macbook pro home and access all windows shares on my home networked computers. I even took the windows xp machine home from work to test it and I was able to connect to the shares without issue from my Macbook pro.
    Two things stand out ... you mentioned a Cisco router and we use a Cisco router at work. Also, both of us have upgraded to 10.6 and authentication fails at that time.
    Problem is between OS 10.6 and the Cisco routers I believe. I am not sure how to fix the issue though.

  • "netcfg2 -a" does not remove "/var/run/daemons/net-profiles"

    hello!
    i have found out, that a "netcgf2 -a" does not remove /var/run/daemons/net-profiles. after that i have to stop the net-profiles daemon by hand. i connect to networks with "netcfg2 <profile>", the net-profiles daemon will be started automatically by that command.
    is this an issue?
    another problem i have is, that netcfg2 even cannot connect to a network automatically, if i have two networks with the same beginning:
    for example: network a: foo; network b: foobar - when i want to connect to "foo" it uses the "foobar" profile, because the name of the profile file is listed before the name of the file from network a.
    bye iggy

    The first thing: I thing netcfg2 should not touch anything in /var/run/daemons, since that's the job of scripts in /etc/rc.d/* It's the same for any daemon you run - if you kill it manually, not using /etc/rc.d/<whatever> stop, then you have to clean up /var/run/daemons/<whatever> yourself as well.
    before connecting with netcfg2 there is no "net-profiles" in /var/run/daemons. after netcfg2 <profile> it is. after "netcfg2 -a" the file is still there, so it indicates net-profiles-daemon is still running.
    Last edited by iggy (2008-05-06 13:52:28)

  • General Hardware issues aspire 1825PTZ

    Hello, I am a newbie but i thought that posting in the hardware issues was more appropriate because I need to set up all the hardware of my netbook correctly.
    So here they are:
    - GRAPHIC DRIVERS I have installed the latest intel drivers for my chipset but i don't know if i have loaded vesa or proprietary drivers, maybe i should confire xorg.conf, wiki is not really clear to me about this... installed new drivers they automatically set up eliminating the conflicts
    - TOUCHPAD: I have installed synaptics drivers, installed gpoining-device-settings, and run and configured with it (even if when i start it it says an X error occurred. The error was BadAtom (invalid atom parameter) working
    - SATA AHCI in bios it is enebled, so did /arch/setup installed them automatically? followed wiki pretty fast and simple.
    - AUDIO: my netbook has a simple dolby as output, writing dolby in the wiki doesn't give me anything, is there something I should know? got alsa, but looking to the pro audio wiki page
    - WIFI: I have managed it to get it working, but I want it to auto connect at boot. adding wlan0="dhcp" and INTERFACES=(wlan0) enables the wifi card at boot, but I don't know why setting DAEMONS=(...net-profiles) and NETWORKS=(wireless-wpa)doesn't let the card connect, help? Working ,boot to , commented wlan="dhcp", modified net-profiles daemon in background
    -BLUETOOTH: Not configured yet so i won't ask anything untill I'll configure it. working followed wiki
    -CARD READER: I was just thinking: do I need to just add HAL as daemon? I didn't find any particular guide for card readers. Working, just added HAL
    -G-SENSOR: The accelerometer, I really have no clue, i have not found anything in the wiki. Clarifications?
    -WEBCAM: not yet configured like bluetooth, i will follow the wiki and if i get problems I will update.
    -WiMAX: I don't really need them but I am curious... Clarifications?
    I hope you will help me thanks
    Ps: Sorry for wall of text, I tried to make it as clear as i could.^^
    Last edited by natostanco (2010-10-08 14:56:27)

    Hi all again...I found this thread http://ubuntuforums.org/showthread.php?t=1486671
    what i need from it is
    - how to enable multitouch
    - how to enable accelerometer
    - how to setup screen rotation (scrpit from tablet pc wiki not working for me...)
    Please can someone help me try to port this stuff from that ubuntu thread to arch linux?

Maybe you are looking for