Hey guys, total newbie to Linux I just installed Ubuntu loving it so far, only I'm having one issue, my laptop is plugged into a bigger monitor. Now I want to be able to close my laptop and have it just display on my big monitor. I can make it say it only displays on the big monitor but I cant figure out how to make it so I can close my laptop lid and it doesn't go into hibernate/shutdown/blank screen. Is it possible? I like to shut my lid and put my xbox on top of it to save space on my desk, and having to keep my laptop open is becoming a hassle, tried googling the issue but came up with nothing.
|
|
# ? Jun 21, 2011 05:38 |
|
|
# ? Jun 13, 2024 03:27 |
|
Yolkz posted:Hey guys, total newbie to Linux I just installed Ubuntu loving it so far, only I'm having one issue, my laptop is plugged into a bigger monitor. Now I want to be able to close my laptop and have it just display on my big monitor. I can make it say it only displays on the big monitor but I cant figure out how to make it so I can close my laptop lid and it doesn't go into hibernate/shutdown/blank screen. Is it possible? System -> Preferences -> Power Management -> "When laptop lid is closed:" That's in "classic" gnome, i'm not sure if they totally rearranged the menus in Unity or not.
|
# ? Jun 21, 2011 06:28 |
peepsalot posted:System -> Preferences -> Power Management -> "When laptop lid is closed:" Yeah in that option it only gives me the option to hibernate/blankscreen/ or shutdown. So no matter what when I close the lid my computer goes into shutdown mode and no longer displays on my big monitor
|
|
# ? Jun 21, 2011 12:44 |
|
Yolkz posted:Yeah in that option it only gives me the option to hibernate/blankscreen/ or shutdown. So no matter what when I close the lid my computer goes into shutdown mode and no longer displays on my big monitor Try code:
|
# ? Jun 21, 2011 14:21 |
|
Yolkz posted:Hey guys, total newbie to Linux I just installed Ubuntu loving it so far, only I'm having one issue, my laptop is plugged into a bigger monitor. Now I want to be able to close my laptop and have it just display on my big monitor. I can make it say it only displays on the big monitor but I cant figure out how to make it so I can close my laptop lid and it doesn't go into hibernate/shutdown/blank screen. Is it possible? Fixed that like this years ago on a 10-yr old Toshiba: added Option "MonitorLayOut" "CRT,LFP" to the "Device" Section of XF86Config (now xorg.conf) in /etc/X11/. That made X use the external screen only - doesn't matter whether it's actually a CRT of an LCD - and somehow circumvented all standby behaviour when clicking the laptop's lid fully closed. I don't know why the latter fixed that, though. May just have been lucky, given the limited support for power management at the time. I could still use the manual apm commands too. Give it a try, can't really hurt. If you end up with a blank screen (unlikely), escape X with Ctrl+Alt+F* to a runlevel 3 console or end it with Ctrl+Alt+Backspace if you must.
|
# ? Jun 21, 2011 14:52 |
|
I did a motherboard swap in my server (Ubuntu 10.10 32b), and I'm not getting the improved performance I'm after. I went from an Athlon XP 2600+, SIS 748(or something) with 1GB of ram to a Core2Duo E6750 dual core with an Intel P35 chipset and 4GB of DDR3. Now apart form a small udev annoyance it booted up flawlessly. I did a small performance test: time echo "scale=5000; 4*a(1)" | bc -l -q ; cat /proc/cpuinfo | grep "model name"; cat /proc/meminfo | grep MemTotal With the following results: old system posted:real 0m56.586s new system posted:real 0m43.423s For reference, someone with a similar setup to mine: quote:real 0m31.816s So, here's my question: Why is my system performing so poorly? I'm running a stock i686 SMP kernel same as before, no special K7 kernels or anything.
|
# ? Jun 21, 2011 15:12 |
|
spankmeister posted:Why is my system performing so poorly? I'm running a stock i686 SMP kernel same as before, no special K7 kernels or anything. I'd be willing to bet that this is your problem. I checked the dependencies of bc on my Gentoo server (`emerge -epvt bc`) and GNU MPFR was listed -- I do not know anything about how MPFR works, but multiple precision arithmetic is one of the things that will usually see a significant improvement when you move to 64-bit code. (It might be the required support for SSE and not simply wider registers, but since MPFR is based on GMP, it could very well be either.) EDIT: I just noticed that bc links against GMP too. Lysidas fucked around with this message at 16:14 on Jun 21, 2011 |
# ? Jun 21, 2011 16:01 |
|
Lysidas posted:I'd be willing to bet that this is your problem. I checked the dependencies of bc on my Gentoo server (`emerge -epvt bc`) and GNU MPFR was listed -- I do not know anything about how MPFR works, but multiple precision arithmetic is one of the things that will usually see a significant improvement when you move to 64-bit code. (It might be the required support for SSE and not simply wider registers, but since MPFR is based on GMP, it could very well be either.) Right. But that means reinstalling because a 64 bit kernel won't help if all my libraries and binaries are 32 bit.
|
# ? Jun 21, 2011 17:18 |
|
spankmeister posted:Right. But that means reinstalling because a 64 bit kernel won't help if all my libraries and binaries are 32 bit. Exactly. If your benchmark is actually representative of what you're doing on your server (e.g. video transcoding, encryption, compression, etc.) then reinstall. Otherwise, don't worry about it. There are other benchmarks that you can run that won't be as affected by 32- or 64-bit compilation; you picked one that is.
|
# ? Jun 21, 2011 17:56 |
|
taqueso posted:Try What do you see on this screen?
|
# ? Jun 22, 2011 01:46 |
|
nitrogen posted:$ sudo /etc/init.d/ntp stop I tried removing those, and doing those other steps. ntpq -p didn't give me any result with a + or * or anything prefixed to it. I appreciate the help, but I think I'm just going to just format and reinstall at this point, maybe try another distro. The amount of time I've spent struggling with this is ridiculous.
|
# ? Jun 22, 2011 03:53 |
|
nitrogen posted:ps -ef |grep ntp |grep -v grep Neat trick to save some time in situations like this: # ps -ef | grep [n]tp grep will match on any single character inside the brackets. For instance, if you had used [abcd]tp or [a-d]tp, grep would match on atp, btp, ctp or dtp. With the above, grep will only match on ntp. The real magic comes in when you take a look at your grep process in ps. Because ps is displaying the literal command rather than how the command interprets special characters, your grep will show up in ps with the square brackets included and thus won't be matched by your grep. Observe: code:
|
# ? Jun 22, 2011 07:42 |
|
dolicf posted:Neat trick to save some time in situations like this: Oh my god, I am going to use this so much. You have saved me literally hundreds of keystrokes.
|
# ? Jun 22, 2011 10:35 |
|
You could also use pgrep I suppose. pgrep -l will list the PID and name of the matched processes. Still, neat trick.
|
# ? Jun 22, 2011 12:35 |
|
I, too, love that trick. I sometimes wonder how many keystrokes I've lost correcting mistyped brackets, though. Probably not enough to have always used grep -v grep.
|
# ? Jun 22, 2011 13:17 |
|
dolicf posted:Neat trick to save some time in situations like this: Oh, now that's nice. what's nicer is it works on all flavors of unix I work on, so i will incorporate it (hpux, solaris, bsd, linux)
|
# ? Jun 22, 2011 14:23 |
|
dolicf posted:Neat trick to save some time in situations like this: Seriously? I've been using Linux for... 15+ years now. How have I never heard of/thought of this? Thank you, goon sir.
|
# ? Jun 22, 2011 21:20 |
|
ps $(pgrep ntp)
|
# ? Jun 22, 2011 22:15 |
|
I'm a recent convert to the latest Ubuntu (11.04) and I use two hard disks pretty regularly. However, sometimes the one that Ubuntu isn't installed on sometimes isn't mounted on boot and I go into disk manager -> mount. Is there a way to have it always mount on startup and get rid of the desktop shortcut thing that's there when it's mounted? Edit, also is there a way to pipe text to the clipboard? E.g. "$ ./command | clipboard" gonadic io fucked around with this message at 23:04 on Jun 22, 2011 |
# ? Jun 22, 2011 22:55 |
|
AlsoD posted:I'm a recent convert to the latest Ubuntu (11.04) and I use two hard disks pretty regularly. However, sometimes the one that Ubuntu isn't installed on sometimes isn't mounted on boot and I go into disk manager -> mount. It's best to do this with the UUID Refer to this guide: http://www.cyberciti.biz/faq/linux-finding-using-uuids-to-update-fstab/ quote:Edit, also is there a way to pipe text to the clipboard? E.g. "$ ./command | clipboard" xclip should be able to help you out.
|
# ? Jun 22, 2011 23:12 |
|
AlsoD posted:I'm a recent convert to the latest Ubuntu (11.04) and I use two hard disks pretty regularly. However, sometimes the one that Ubuntu isn't installed on sometimes isn't mounted on boot and I go into disk manager -> mount. As 'root', edit the 'fstab' file in the /etc directory. The entry for your main drive should look like this: pre:/dev/sda[+] / ext[x] defaults 1 1 pre:/dev/sdb[+] /$dir[*] ext[x] defaults 1 2 [x]relevant filesystem type [*]chosen mount directory Note the different number at the end of the second line; only the root partition has 1; subsequent native filesystems have 2. Non-native filesystems get 0. I assume you have SATA drives. If they're IDE, you use /dev/hda and /dev/hdb.
|
# ? Jun 22, 2011 23:21 |
|
Underflow posted:As 'root', edit the 'fstab' file in the /etc directory. The entry for your main drive should look like this: quote:I assume you have SATA drives. If they're IDE, you use /dev/hda and /dev/hdb.
|
# ? Jun 22, 2011 23:26 |
|
spankmeister posted:I have made it a habit to mount by UUID because that survives any device node renumbering if you happen to plug in an extra disk or something. Haven't experienced with it yet. Sounds good. spankmeister posted:Actually in ubuntu they will be sdX as well. Aha, didn't know that.
|
# ? Jun 22, 2011 23:33 |
|
I am trying to setup a samba share on my laptop running ubuntu 11. I believe I have everything set up correctly but I cannot see it on my desktop running Windows 7. After doing a bit of reading, it seems that Windows 7 cannot properly see Samba shares because of the "HomeGroup" poo poo. Does this still hold true?
|
# ? Jun 23, 2011 03:30 |
|
Hughmoris posted:I am trying to setup a samba share on my laptop running ubuntu 11. I believe I have everything set up correctly but I cannot see it on my desktop running Windows 7. After doing a bit of reading, it seems that Windows 7 cannot properly see Samba shares because of the "HomeGroup" poo poo. Does this still hold true? What do you mean by "can't see it"? To connect, type "\\servername\share" into the address bar in Windows Explorer. I'm guessing only automatic network discovery is not functioning.
|
# ? Jun 23, 2011 03:50 |
|
Modern Pragmatist posted:What do you mean by "can't see it"? Doesn't work, tells me my password is incorrect. This seems to be a common problem with Windows 7 and Samba for home use. Anyone else run into it?
|
# ? Jun 23, 2011 04:01 |
|
Hughmoris posted:Doesn't work, tells me my password is incorrect. This seems to be a common problem with Windows 7 and Samba for home use. Anyone else run into it? Dealing with this problem years ago was one of the reasons that I moved to an all-Ubuntu environment.
|
# ? Jun 23, 2011 04:30 |
|
angrytech posted:Dealing with this problem years ago was one of the reasons that I moved to an all-Ubuntu environment. But what if you want to play PC games?
|
# ? Jun 23, 2011 04:43 |
|
Hughmoris posted:But what if you want to play PC games? I started going outside instead. Just kidding, I hit 21 and realized that I could buy alcohol.
|
# ? Jun 23, 2011 04:53 |
|
I guess I could try dual-booting Win7 and Kubuntu and see how I survive. Hughmoris fucked around with this message at 05:24 on Jun 23, 2011 |
# ? Jun 23, 2011 05:16 |
|
Hughmoris posted:I am trying to setup a samba share on my laptop running ubuntu 11. I believe I have everything set up correctly but I cannot see it on my desktop running Windows 7. After doing a bit of reading, it seems that Windows 7 cannot properly see Samba shares because of the "HomeGroup" poo poo. Does this still hold true? You've made sure to specify a password when you configured samba and ran the test? You've set the correct 'workgroup' and NIC (that smbd binds to) in smb.conf?
|
# ? Jun 23, 2011 12:41 |
|
Hughmoris posted:I guess I could try dual-booting Win7 and Kubuntu and see how I survive.
|
# ? Jun 23, 2011 13:42 |
|
Hughmoris posted:Doesn't work, tells me my password is incorrect. This seems to be a common problem with Windows 7 and Samba for home use. Anyone else run into it? smbpasswd -a $username Underflow posted:
|
# ? Jun 23, 2011 14:55 |
|
quote:sdX evol262 posted:I think this started in 2.6.19 or something. Any modern Linux system should be that way. I noticed an old IDE ROM is now an srX under 1337 Slack (I love them for naming it that and still have a plausible reason). Speaking of IDE drives, do you know if there are any reliable models still around? I'm a bit put off by SATA annoyances on 2 drives I have, and since I only use this machine as the head of a small LAN of dedicated boxes, the better performance isn't important to me. I have IDE drives in several machines from last century chugging along nicely...
|
# ? Jun 23, 2011 15:56 |
|
Underflow posted:I noticed an old IDE ROM is now an srX under 1337 Slack (I love them for naming it that and still have a plausible reason). Not really, unless you go on the refurb market. What annoyances though?
|
# ? Jun 23, 2011 15:59 |
|
spankmeister posted:Not really, unless you go on the refurb market. It's here in this thread
|
# ? Jun 23, 2011 16:12 |
|
I'm currently trying to install GTK+ in ubuntu to dick around with, and trying to make the source keeps giving me an error saying that xinput.h cannot be found. Note that I've been using linux for a total of about a week, so please excuse my incompetence. Here's the error:code:
|
# ? Jun 24, 2011 06:32 |
|
You're missing a dependency to build that:code:
Why are you trying to build gtk from source? Let the package manager do your installations for you whenever possible: code:
|
# ? Jun 24, 2011 06:45 |
|
I'm going through the official tutorial and it said to install GTK from source. Also I didn't know the apt package name. Anyways, now that I've installed the package, I'm trying to compile the first example program in the tutorial, and pkg-config says it can't find the gtk pacakge in its search path:code:
What is my obvious mistake this time?
|
# ? Jun 24, 2011 07:41 |
|
|
# ? Jun 13, 2024 03:27 |
|
What are you trying to accomplish here? While I applaud you trying to build your own packages, gtk is not exactly something you'd want a half-installed half-working version of. As for solving your problem: Does the gkt+ package come with a configure script? (packages usually do) If so, run ./configure before you run make, and it will tell you what packages are missing, then use apt-cache search <name> (do an apt-get update first) to find what ubuntu package contains the needed dependencies (usually something like libsometing-dev) and then install that with apt-get install or aptitude install.
|
# ? Jun 24, 2011 08:39 |