From owner-freebsd-questions@freebsd.org Sun Aug 23 16:25:11 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 441563C18C0 for ; Sun, 23 Aug 2020 16:25:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BZLFf1D5nz3ZFF for ; Sun, 23 Aug 2020 16:25:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.223.163.154]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPA (Nemesis) id 1M2gt5-1kCuHG3Oql-004EmZ; Sun, 23 Aug 2020 18:25:06 +0200 Date: Sun, 23 Aug 2020 18:25:05 +0200 From: Polytropon To: "Vlad D. Markov" Cc: freebsd-questions@freebsd.org, Polytropon Subject: Re: Reset xorg using lumina desktop Message-Id: <20200823182505.6436ad3d.freebsd@edvax.de> In-Reply-To: <20200823112545.f53fe2a7673752ff48fb093c@aim.com> References: <20200823101906.95819c69.freebsd@edvax.de> <20200823112545.f53fe2a7673752ff48fb093c@aim.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:LcX7a6WZJx+HuijUVXixuS2af8FReVjPpuYjuY2XG1LCZB9vT+F f9+bp30hmYsj7Nt40jCkcM6jnNSqf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J8CiXWuxRztZm1vbPwOWDSp X-Rspamd-Queue-Id: 4BZLFf1D5nz3ZFF X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.134) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [2.75 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; FREEMAIL_TO(0.00)[aim.com]; RECEIVED_SPAMHAUS_PBL(0.00)[94.223.163.154:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.35)[0.348]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[212.227.126.134:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.126.134:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2020 16:25:11 -0000 On Sun, 23 Aug 2020 11:25:45 -0400, Vlad D. Markov wrote: > On Sun, 23 Aug 2020 10:19:06 +0200 > Polytropon wrote: > > > On Sat, 22 Aug 2020 16:27:00 -0500, Antonio Olivares wrote: > > > Dear kind FreeBSD users, > > > > > > I am running FreeBSD using lumina. I was using two screens, one with HDMI > > > and one with VGA at school. Since learning is now online, I am using only > > > HDMI now, but my screen only remembers new setting. I have tried checking > > > /etc/X11/xorg.conf but it is not present. > > > > That file needed to be generated in the past, but it's no > > longer needed (and even the location is not correct anymore, > > today you can use a /usr/local/etc/X11/xorg.conf file, or > > partial files in /usr/local/etc/X11/xorg.conf.d/ with > > configuration fragments). > > > > For example, if you want to force a specific screen size > > ("resolution"), you could use the following: > > > > /usr/local/etc/X11/xorg.conf.d/screen.conf: > > > > Section "Screen" > > Identifier "Screen0" > > Device "Card0" > > SubSection "Display" > > Modes "1024x768" > > EndSubSection > > EndSection > > > > I use this to have a laptop with a native LCD size of > > 1280x800 to display correctly on a 4:3 CRT attached at > > the docking station. > > > > > > > > > I try screen configuration, but > > > cannot reset it to only Monitor with HDMI output. > > > > You can use the xrandr program to manually switch to the > > screen you want. Then add that to your X startup file, > > ~/.xinitrc or ~/.xsession, so it will automatically use > > the desired monitor when you start X. > > > > With xrandr, you can also alter the size ("resolution") > > parameters of the screen, if needed. > > > > However, most of all this stuff should be correctly > > autodetected by X. > > > > > > > > > How can I reset it so I can just have fresh desktop with all icons on the > > > screen? > > > > "Desktop with icons on the screen" is a matter of the deskto > > environment, not of X. Most desktop systems will arrange the > > icons depending on the screen parameters they find. > > > > > > > > > If you need output from xrandr, I can send it in on Monday. When teaching > > > online and using Google classroom, the microphone was muted, I started > > > using telefono to use and connect with it. > > > > Always check mixer settings, levels, selected recording device, > > and for the program in use, which sound system it uses (for > > example, OSS or ALSA). > > > I am not sure but this sounds like an issue I had where the > default was to display on both my laptop and external screens > and I had the laptop closed. All the icons and menu bar were > on the closed laptop and all I saw on the external monitor> > was the background That looks like the system detected two screens and made a "dual head" setup (two physical desktops) automatically, instead of just mirroring the laptop's screen content to the external display. Things like this often can be configured in the BIOS / UEFI setup of the computer. > I solved this using xrandr in my .xinitrc file. I turn off > the laptop display if the external is available and vice-versa > which is probably unecessary. > > #!/bin/sh > #set -x > > intern=LVDS-1 > extern=VGA-1 > > if xrandr | grep -q "$extern connected"; then > xrandr --output "$intern" --off --output "$extern" --auto > # echo "turning on external" > else > xrandr --output "$extern" --off --output "$intern" --auto > # echo "turning on internal" > fi That is a good approach to handle this kind of situation. :-) As I mentioned, you might currently see a specific attempt of the desktop environment to handle two screens, which adds more complexity than just mirroring the screen content (both displays show same desktop), and just ignore the (closed) laptop display when you can see the screen content on the external display... Note: You can also use xrandr to change screen size if it is needed for the external display (different geometry or different native screen size). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...